1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/chtickynotes_ynh.git synced 2024-09-03 18:15:57 +02:00

fix rights

This commit is contained in:
ericgaspar 2021-05-15 16:33:18 +02:00
parent 5d4690ea9b
commit fbb9d9f9c0
4 changed files with 17 additions and 8 deletions

View file

@ -17,7 +17,7 @@
"email": "" "email": ""
}, },
"requirements": { "requirements": {
"yunohost": ">= 4.1.7" "yunohost": ">= 4.2.4"
}, },
"multi_instance": false, "multi_instance": false,
"services": [ "services": [

View file

@ -87,16 +87,20 @@ ynh_add_fpm_config --usage=low --footprint=low
# SECURE FILES AND DIRECTORIES # SECURE FILES AND DIRECTORIES
#================================================= #=================================================
# Set right permissions for curl install chmod 750 "$final_path"
chown -R $app: $final_path chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
#================================================= #=================================================
# SETUP SSOWAT # SETUP SSOWAT
#================================================= #=================================================
ynh_script_progression --message="Configuring permissions..." --weight=1 ynh_script_progression --message="Configuring permissions..." --time --weight=1
# Make app public if necessary or protect it # Make app public if necessary
[ $is_public -eq 0 ] || ynh_permission_update --permission="main" --add="visitors" if [ $is_public -eq 1 ]
then
ynh_permission_update --permission="main" --add="visitors"
fi
#================================================= #=================================================
# RELOAD NGINX # RELOAD NGINX

View file

@ -65,7 +65,9 @@ ynh_system_user_create --username=$app
#================================================= #=================================================
# Restore permissions on app files # Restore permissions on app files
chown -R $app: $final_path chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
#================================================= #=================================================
# RESTORE THE PHP-FPM CONFIGURATION # RESTORE THE PHP-FPM CONFIGURATION

View file

@ -79,7 +79,10 @@ ynh_add_fpm_config --usage=low --footprint=low
#================================================= #=================================================
cp -a ../sources/* $final_path cp -a ../sources/* $final_path
chown -R $app: $final_path
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION