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

Merge pull request #81 from YunoHost-Apps/fix-permissions2

Bugfix file permissions on /var/www/pyinventory
This commit is contained in:
Jens Diemer 2022-01-06 18:17:12 +01:00 committed by GitHub
commit 5cdf7b1d31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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"