Created
November 23, 2018 17:41
-
-
Save pr0way/5265fb83ce931d7e22eca2c5110153f8 to your computer and use it in GitHub Desktop.
Simple temporary solution for disappear nginx logs folder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add these lines at the end your /etc/rc.local before `exit 0` | |
if [ ! -d /var/log/nginx ]; then | |
sudo mkdir -p /var/log/nginx | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment