1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lufi_ynh.git synced 2024-09-03 19:36:28 +02:00
This commit is contained in:
ericgaspar 2021-08-16 11:40:57 +02:00
parent 10aa5a63f8
commit 1b28c2fe44
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 4 additions and 20 deletions

View file

@ -117,6 +117,8 @@ public_path=/home/yunohost.app/$app
ynh_app_setting_set --app=$app --key=public_path --value=$public_path
mkdir -p $public_path
chown -R $app:www-data $public_path
chmod 755 $public_path
#=================================================
# NGINX CONFIGURATION
@ -185,19 +187,6 @@ ynh_script_progression --message="Configuring a systemd service..."
# Create a dedicated systemd config
ynh_add_systemd_config
#=================================================
# GENERIC FINALIZATION
#=================================================
# SECURE FILES AND DIRECTORIES
#=================================================
ynh_script_progression --message="Securing files and directories..."
# Set permissions to app files
chown -R $app:www-data $final_path
chmod -R o-rwx "$final_path"
chown -R $app:www-data $public_path
chmod 755 $public_path
#=================================================
# SETUP LOGROTATE
#=================================================

View file

@ -69,15 +69,10 @@ ynh_script_progression --message="Restoring the app main directory..."
ynh_restore_file --origin_path="$final_path"
#=================================================
# RESTORE USER RIGHTS
#=================================================
ynh_script_progression --message="Restoring user rights..."
# Restore permissions on app files
chown -R $app:www-data $final_path
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chmod 755 $public_path
chown -R $app:www-data "$final_path"
#=================================================
# SPECIFIC RESTORATION