mirror of
https://github.com/YunoHost-Apps/etherpad_mypads_ynh.git
synced 2024-09-03 18:36:09 +02:00
Add permissions
This commit is contained in:
parent
78c9224929
commit
6ba8b0608c
3 changed files with 4 additions and 1 deletions
|
@ -206,7 +206,8 @@ ynh_add_config --template="../conf/credentials.json" --destination="$final_path/
|
|||
#=================================================
|
||||
|
||||
# Set files ownership to etherpad
|
||||
chown -R $app: $final_path
|
||||
chown -R $app:$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
|
||||
|
|
|
@ -348,6 +348,7 @@ fi
|
|||
|
||||
# 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"
|
||||
chown $app -R /var/log/$app/etherpad.log
|
||||
|
|
Loading…
Add table
Reference in a new issue