1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/etherpad_ynh.git synced 2024-09-03 18:36:10 +02:00

protect final_path

This commit is contained in:
ericgaspar 2021-03-24 19:58:29 +01:00
parent 8f1b799b5e
commit 160fc38886
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 3 additions and 0 deletions

View file

@ -140,6 +140,7 @@ ynh_store_file_checksum --file="$final_path/credentials.json"
# Set permissions to app files
chown -R $app: $final_path
chmod o-rwx $final_path
chmod 600 $final_path/credentials.json
#=================================================

View file

@ -92,6 +92,7 @@ ynh_psql_execute_file_as_root --file="./db.sql" --database=$db_name
# Restore permissions on app files
chown -R $app: $final_path
chmod o-rwx $final_path
chmod 600 $final_path/credentials.json
#=================================================

View file

@ -156,6 +156,7 @@ popd || ynh_die
# Set permissions on app files
chown -R $app: $final_path
chmod o-rwx $final_path
chmod 600 $final_path/credentials.json
#=================================================