1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pyinventory_ynh.git synced 2024-09-03 20:16:09 +02:00

Bugfix file permissions on /var/www/pyinventory

This commit is contained in:
JensDiemer 2022-01-06 18:16:38 +01:00
parent 04499c73f2
commit d772b1d6a6
3 changed files with 4 additions and 4 deletions

View file

@ -205,7 +205,7 @@ yunohost service add $app --description="Web based management to catalog things"
# Set permissions to app files
chown -R "$app:" "$log_path"
chown -R "$app:" "$public_path"
chown -R "$app:www-data" "$public_path"
chown -R "$app:" "$final_path"
chmod o-rwx "$log_path"

View file

@ -70,7 +70,7 @@ ynh_system_user_create --username=$app --home_dir="$final_path" --use_shell
#=================================================
# Restore permissions on app files
chown -R "$app:" "$public_path"
chown -R "$app:www-data" "$public_path"
chown -R "$app:" "$final_path"
#=================================================
@ -140,7 +140,7 @@ ynh_restore_file --origin_path="/etc/logrotate.d/$app"
# Set permissions to app files
chown -R "$app:" "$log_path"
chown -R "$app:" "$public_path"
chown -R "$app:www-data" "$public_path"
chown -R "$app:" "$final_path"
chmod o-rwx "$log_path"

View file

@ -197,7 +197,7 @@ yunohost service add $app --description="Web based management to catalog things"
# Set permissions to app files
chown -R "$app:" "$log_path"
chown -R "$app:" "$public_path"
chown -R "$app:www-data" "$public_path"
chown -R "$app:" "$final_path"
chmod o-rwx "$log_path"