1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ihatemoney_ynh.git synced 2024-09-03 19:26:15 +02:00

Fix install directory permissions

This commit is contained in:
Salamandar 2023-09-08 22:53:08 +02:00
parent 68eed5b920
commit 942bd045dc
3 changed files with 3 additions and 4 deletions

View file

@ -49,6 +49,7 @@ ram.runtime = "100M"
[resources.system_user]
[resources.install_dir]
group = "www-data:r-x"
[resources.permissions]
main.url = "/"

View file

@ -46,8 +46,7 @@ sub_path_only="$(if [[ "$path" == "/" ]]; then echo '# ' ; else echo ''; fi)"
ynh_add_config --template="../conf/gunicorn.conf.py" --destination="$install_dir/gunicorn.conf.py"
ynh_add_config --template="../conf/ihatemoney.cfg" --destination="$install_dir/ihatemoney.cfg"
chmod -R o-rwx "$install_dir"
chown -R "$app:$app" "$install_dir"
chown -R "$app:www-data" "$install_dir"
# Configure log directory
mkdir -p "/var/log/$app"

View file

@ -120,8 +120,7 @@ sub_path_only="$(if [[ "$path" == "/" ]]; then echo '# ' ; else echo ''; fi)"
ynh_add_config --template="../conf/gunicorn.conf.py" --destination="$install_dir/gunicorn.conf.py"
ynh_add_config --template="../conf/ihatemoney.cfg" --destination="$install_dir/ihatemoney.cfg"
chmod -R o-rwx "$install_dir"
chown -R "$app:$app" "$install_dir"
chown -R "$app:www-data" "$install_dir"
#=================================================
# SETUP SYSTEMD