1
0
Fork 0
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:
ericgaspar 2021-05-16 23:09:54 +02:00
parent b8265cb2e6
commit 810b3e1f84
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 6 additions and 3 deletions

View file

@ -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"
#=================================================

View file

@ -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"
#=================================================

View file

@ -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"
#=================================================