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

Fix permission bug

This commit is contained in:
Stylix58 2021-03-24 07:56:31 +01:00 committed by GitHub
parent 19577dc5fb
commit 299efa75b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,8 +57,10 @@ test ! -e "$final_path" || ynh_die --message="This path already contains a folde
if [[ $path_url =~ my_webapp ]] if [[ $path_url =~ my_webapp ]]
then then
ynh_webpath_register --app=$app --domain=$domain --path_url=$YNH_APP_ARG_PATH ynh_webpath_register --app=$app --domain=$domain --path_url=$YNH_APP_ARG_PATH
chown -R my_webapp $final_path
else else
ynh_webpath_register --app=$app --domain=$domain --path_url=$path_url ynh_webpath_register --app=$app --domain=$domain --path_url=$path_url
chown -R www-data.www-data $final_path
fi fi
@ -134,8 +136,6 @@ ynh_use_logrotate
#================================================= #=================================================
ynh_script_progression --message="Configuring permissions..." --weight=1 ynh_script_progression --message="Configuring permissions..." --weight=1
# Configure internal permissions for ICEcoder
chown -R my_webapp $final_path
#================================================= #=================================================
# END OF SCRIPT # END OF SCRIPT