mirror of
https://github.com/YunoHost-Apps/cryptpad_ynh.git
synced 2024-09-03 18:26:14 +02:00
permissions
This commit is contained in:
parent
b8265cb2e6
commit
810b3e1f84
3 changed files with 6 additions and 3 deletions
|
@ -131,8 +131,9 @@ popd || ynh_die
|
|||
#=================================================
|
||||
ynh_script_progression --message="Securing files and directories..." --weight=1
|
||||
|
||||
chown -R $app:$app $final_path
|
||||
chmod 750 "$final_path"
|
||||
chmod -R o-rwx $final_path
|
||||
chown -R $app:$app $final_path
|
||||
chmod 600 "$final_path/config/config.js"
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -69,8 +69,9 @@ ynh_restore_file --origin_path="$final_path"
|
|||
#=================================================
|
||||
|
||||
# Restore permissions on app files
|
||||
chown -R $app: $final_path
|
||||
chmod 750 "$final_path"
|
||||
chmod -R o-rwx $final_path
|
||||
chown -R $app:$app $final_path
|
||||
chmod 600 "$final_path/config/config.js"
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -141,8 +141,9 @@ ynh_add_systemd_config
|
|||
#=================================================
|
||||
|
||||
# Set permissions on app files
|
||||
chown -R $app: $final_path
|
||||
chmod 750 "$final_path"
|
||||
chmod -R o-rwx $final_path
|
||||
chown -R $app:$app $final_path
|
||||
chmod 600 "$final_path/config/config.js"
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue