1
0
Fork 0
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:
ericgaspar 2021-03-24 12:04:53 +01:00
parent 78c9224929
commit 6ba8b0608c
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 4 additions and 1 deletions

View file

@ -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

View file

@ -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

View file

@ -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