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:
parent
04499c73f2
commit
d772b1d6a6
3 changed files with 4 additions and 4 deletions
|
@ -205,7 +205,7 @@ yunohost service add $app --description="Web based management to catalog things"
|
||||||
|
|
||||||
# Set permissions to app files
|
# Set permissions to app files
|
||||||
chown -R "$app:" "$log_path"
|
chown -R "$app:" "$log_path"
|
||||||
chown -R "$app:" "$public_path"
|
chown -R "$app:www-data" "$public_path"
|
||||||
chown -R "$app:" "$final_path"
|
chown -R "$app:" "$final_path"
|
||||||
|
|
||||||
chmod o-rwx "$log_path"
|
chmod o-rwx "$log_path"
|
||||||
|
|
|
@ -70,7 +70,7 @@ ynh_system_user_create --username=$app --home_dir="$final_path" --use_shell
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Restore permissions on app files
|
# Restore permissions on app files
|
||||||
chown -R "$app:" "$public_path"
|
chown -R "$app:www-data" "$public_path"
|
||||||
chown -R "$app:" "$final_path"
|
chown -R "$app:" "$final_path"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -140,7 +140,7 @@ ynh_restore_file --origin_path="/etc/logrotate.d/$app"
|
||||||
|
|
||||||
# Set permissions to app files
|
# Set permissions to app files
|
||||||
chown -R "$app:" "$log_path"
|
chown -R "$app:" "$log_path"
|
||||||
chown -R "$app:" "$public_path"
|
chown -R "$app:www-data" "$public_path"
|
||||||
chown -R "$app:" "$final_path"
|
chown -R "$app:" "$final_path"
|
||||||
|
|
||||||
chmod o-rwx "$log_path"
|
chmod o-rwx "$log_path"
|
||||||
|
|
|
@ -197,7 +197,7 @@ yunohost service add $app --description="Web based management to catalog things"
|
||||||
|
|
||||||
# Set permissions to app files
|
# Set permissions to app files
|
||||||
chown -R "$app:" "$log_path"
|
chown -R "$app:" "$log_path"
|
||||||
chown -R "$app:" "$public_path"
|
chown -R "$app:www-data" "$public_path"
|
||||||
chown -R "$app:" "$final_path"
|
chown -R "$app:" "$final_path"
|
||||||
|
|
||||||
chmod o-rwx "$log_path"
|
chmod o-rwx "$log_path"
|
||||||
|
|
Loading…
Reference in a new issue