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

Update restore

This commit is contained in:
ericgaspar 2022-05-18 09:32:26 +02:00
parent c845bca885
commit c8e8762566
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -66,22 +66,26 @@ ynh_script_progression --message="Restoring the app main directory..." --weight=
ynh_restore_file --origin_path="$final_path" ynh_restore_file --origin_path="$final_path"
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
#================================================= #=================================================
# RESTORE USER RIGHTS # RESTORE USER RIGHTS
#================================================= #=================================================
# Set permissions on app files # # Set permissions on app files
chown -R root: $final_path # chown -R root: $final_path
# Remove permission to others than $app and www-data (nginx user) # # Remove permission to others than $app and www-data (nginx user)
chmod o-rwx $final_path # chmod o-rwx $final_path
chown $app:www-data $final_path # chown $app:www-data $final_path
chown -R $app $final_path/assets # chown -R $app $final_path/assets
chown -R $app $final_path/protected/config # chown -R $app $final_path/protected/config
chown -R $app $final_path/protected/modules # chown -R $app $final_path/protected/modules
chown -R $app $final_path/protected/runtime # chown -R $app $final_path/protected/runtime
chown -R $app $final_path/uploads/* # chown -R $app $final_path/uploads/*
#================================================= #=================================================
# REINSTALL DEPENDENCIES # REINSTALL DEPENDENCIES