mirror of
https://github.com/YunoHost-Apps/flarum_ynh.git
synced 2024-09-03 18:36:24 +02:00
Secure file permissions
This commit is contained in:
parent
3cbf3c69e5
commit
95ed212c69
3 changed files with 7 additions and 3 deletions
|
@ -149,6 +149,8 @@ ynh_script_progression --message="Securing files and directories..."
|
|||
|
||||
# Set permissions to app files
|
||||
chown -R $app:www-data $final_path
|
||||
chmod -R ug+rw,o-rwx $final_path
|
||||
chmod -R ug+x $final_path/flarum
|
||||
|
||||
#=================================================
|
||||
# FLARUM POST-INSTALL
|
||||
|
|
|
@ -72,9 +72,9 @@ ynh_system_user_create --username=$app
|
|||
ynh_script_progression --message="Restoring user rights..."
|
||||
|
||||
# Set right permissions
|
||||
chown -R $app: $final_path
|
||||
chown -R $app:www-data $final_path/storage
|
||||
chmod -R 0775 $final_path
|
||||
chown -R $app:www-data $final_path
|
||||
chmod -R ug+rw,o-rwx $final_path
|
||||
chmod -R ug+x $final_path/flarum
|
||||
|
||||
#=================================================
|
||||
# RESTORE THE PHP-FPM CONFIGURATION
|
||||
|
|
|
@ -251,6 +251,8 @@ ynh_script_progression --message="Securing files and directories..."
|
|||
|
||||
# Set permissions on app files
|
||||
chown -R $app:www-data $final_path
|
||||
chmod -R ug+rw,o-rwx $final_path
|
||||
chmod -R ug+x $final_path/flarum
|
||||
|
||||
#=================================================
|
||||
# RELOAD NGINX
|
||||
|
|
Loading…
Add table
Reference in a new issue