linux - add jobs.log
This commit is contained in:
parent
2c9c9fb62c
commit
d03a1a6e3b
@ -221,6 +221,7 @@ do_and_check_cmd find /etc/nginx -type d -exec chmod 0775 {} \;
|
|||||||
echo "[*] Prepare log files and folders"
|
echo "[*] Prepare log files and folders"
|
||||||
do_and_check_cmd touch /var/log/access.log
|
do_and_check_cmd touch /var/log/access.log
|
||||||
do_and_check_cmd touch /var/log/error.log
|
do_and_check_cmd touch /var/log/error.log
|
||||||
|
do_and_check_cmd touch /var/log/jobs.log
|
||||||
if [ ! -e "/var/log/nginx" ] ; then
|
if [ ! -e "/var/log/nginx" ] ; then
|
||||||
do_and_check_cmd mkdir /var/log/nginx
|
do_and_check_cmd mkdir /var/log/nginx
|
||||||
fi
|
fi
|
||||||
@ -229,8 +230,10 @@ do_and_check_cmd touch /var/log/nginx/error.log
|
|||||||
do_and_check_cmd chown -R root:nginx /var/log/nginx
|
do_and_check_cmd chown -R root:nginx /var/log/nginx
|
||||||
do_and_check_cmd chown root:nginx /var/log/access.log
|
do_and_check_cmd chown root:nginx /var/log/access.log
|
||||||
do_and_check_cmd chown root:nginx /var/log/error.log
|
do_and_check_cmd chown root:nginx /var/log/error.log
|
||||||
|
do_and_check_cmd chown root:nginx /var/log/jobs.log
|
||||||
do_and_check_cmd chmod 770 /var/log/access.log
|
do_and_check_cmd chmod 770 /var/log/access.log
|
||||||
do_and_check_cmd chmod 770 /var/log/error.log
|
do_and_check_cmd chmod 770 /var/log/error.log
|
||||||
|
do_and_check_cmd chmod 770 /var/log/jobs.log
|
||||||
do_and_check_cmd chmod -R 770 /var/log/nginx
|
do_and_check_cmd chmod -R 770 /var/log/nginx
|
||||||
|
|
||||||
# Prepare Let's Encrypt files and folders
|
# Prepare Let's Encrypt files and folders
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user