mirror of
https://github.com/YunoHost-Apps/etherpad_mypads_ynh.git
synced 2024-09-03 18:36:09 +02:00
protect final_path
This commit is contained in:
parent
abf1375ba8
commit
56ed40026c
3 changed files with 3 additions and 0 deletions
|
@ -216,6 +216,7 @@ ynh_store_file_checksum --file="$final_path/credentials.json"
|
|||
|
||||
# Set files ownership to etherpad
|
||||
chown -R $app: $final_path
|
||||
chmod o-rwx $final_path
|
||||
# Restrict access to credentials.json
|
||||
chmod 600 $final_path/credentials.json
|
||||
|
||||
|
|
|
@ -136,6 +136,7 @@ ynh_exec_warn_less npm cache clean --force
|
|||
|
||||
# Restore permissions on app files
|
||||
chown -R $app: $final_path
|
||||
chmod o-rwx $final_path
|
||||
|
||||
#=================================================
|
||||
# ADVERTISE SERVICE IN ADMIN PANEL
|
||||
|
|
|
@ -356,6 +356,7 @@ ynh_system_user_create --username=$app --home_dir=$final_path
|
|||
|
||||
# Set files ownership to etherpad
|
||||
chown -R $app: $final_path
|
||||
chmod o-rwx $final_path
|
||||
chmod 600 "$final_path/credentials.json"
|
||||
# Restrict access to credentials.json
|
||||
chown $app -R /var/log/$app/etherpad.log
|
||||
|
|
Loading…
Add table
Reference in a new issue