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:
parent
c845bca885
commit
c8e8762566
1 changed files with 14 additions and 10 deletions
|
@ -66,22 +66,26 @@ ynh_script_progression --message="Restoring the app main directory..." --weight=
|
|||
|
||||
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
|
||||
#=================================================
|
||||
|
||||
# Set permissions on app files
|
||||
chown -R root: $final_path
|
||||
# # Set permissions on app files
|
||||
# chown -R root: $final_path
|
||||
|
||||
# Remove permission to others than $app and www-data (nginx user)
|
||||
chmod o-rwx $final_path
|
||||
chown $app:www-data $final_path
|
||||
# # Remove permission to others than $app and www-data (nginx user)
|
||||
# chmod o-rwx $final_path
|
||||
# chown $app:www-data $final_path
|
||||
|
||||
chown -R $app $final_path/assets
|
||||
chown -R $app $final_path/protected/config
|
||||
chown -R $app $final_path/protected/modules
|
||||
chown -R $app $final_path/protected/runtime
|
||||
chown -R $app $final_path/uploads/*
|
||||
# chown -R $app $final_path/assets
|
||||
# chown -R $app $final_path/protected/config
|
||||
# chown -R $app $final_path/protected/modules
|
||||
# chown -R $app $final_path/protected/runtime
|
||||
# chown -R $app $final_path/uploads/*
|
||||
|
||||
#=================================================
|
||||
# REINSTALL DEPENDENCIES
|
||||
|
|
Loading…
Add table
Reference in a new issue