mirror of
https://github.com/YunoHost-Apps/pepettes_ynh.git
synced 2024-09-03 19:56:35 +02:00
Merge pull request #9 from YunoHost-Apps/varlogsecurity
/var/log/$app security
This commit is contained in:
commit
733b2dd5cb
3 changed files with 3 additions and 0 deletions
|
@ -127,6 +127,7 @@ pushd $final_path
|
|||
venv/bin/pip install gunicorn
|
||||
mkdir -p /var/log/$app
|
||||
chown -R $app:www-data /var/log/$app
|
||||
chmod o-rwx /var/log/$app
|
||||
cat <<EOF >> wsgi.py
|
||||
from server import app
|
||||
|
||||
|
|
|
@ -91,6 +91,7 @@ pushd $final_path
|
|||
venv/bin/pip install gunicorn
|
||||
mkdir -p /var/log/$app
|
||||
chown -R $app:www-data /var/log/$app
|
||||
chmod o-rwx /var/log/$app
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -114,6 +114,7 @@ pushd $final_path
|
|||
venv/bin/pip install gunicorn
|
||||
mkdir -p /var/log/$app
|
||||
chown -R $app:www-data /var/log/$app
|
||||
chmod o-rwx /var/log/$app
|
||||
cat <<EOF >> wsgi.py
|
||||
from server import app
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue