diff --git a/scripts/install b/scripts/install index 9e767f0..ee2e394 100644 --- a/scripts/install +++ b/scripts/install @@ -216,7 +216,6 @@ 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 diff --git a/scripts/restore b/scripts/restore index 202a1c4..d4da3c7 100644 --- a/scripts/restore +++ b/scripts/restore @@ -136,7 +136,6 @@ 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 diff --git a/scripts/upgrade b/scripts/upgrade index 2b7eb5b..e30515d 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -356,7 +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