1
0
Fork 0
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:
ericgaspar 2021-03-24 19:51:54 +01:00
parent abf1375ba8
commit 56ed40026c
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 3 additions and 0 deletions

View file

@ -216,6 +216,7 @@ ynh_store_file_checksum --file="$final_path/credentials.json"
# Set files ownership to etherpad # Set files ownership to etherpad
chown -R $app: $final_path chown -R $app: $final_path
chmod o-rwx $final_path
# Restrict access to credentials.json # Restrict access to credentials.json
chmod 600 $final_path/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 # Restore permissions on app files
chown -R $app: $final_path chown -R $app: $final_path
chmod o-rwx $final_path
#================================================= #=================================================
# ADVERTISE SERVICE IN ADMIN PANEL # ADVERTISE SERVICE IN ADMIN PANEL

View file

@ -356,6 +356,7 @@ ynh_system_user_create --username=$app --home_dir=$final_path
# Set files ownership to etherpad # Set files ownership to etherpad
chown -R $app: $final_path chown -R $app: $final_path
chmod o-rwx $final_path
chmod 600 "$final_path/credentials.json" chmod 600 "$final_path/credentials.json"
# Restrict access to credentials.json # Restrict access to credentials.json
chown $app -R /var/log/$app/etherpad.log chown $app -R /var/log/$app/etherpad.log