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:
parent
8f1b799b5e
commit
160fc38886
3 changed files with 3 additions and 0 deletions
|
@ -140,6 +140,7 @@ ynh_store_file_checksum --file="$final_path/credentials.json"
|
||||||
|
|
||||||
# Set permissions to app files
|
# Set permissions to app files
|
||||||
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
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -92,6 +92,7 @@ ynh_psql_execute_file_as_root --file="./db.sql" --database=$db_name
|
||||||
|
|
||||||
# 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
|
||||||
chmod 600 $final_path/credentials.json
|
chmod 600 $final_path/credentials.json
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -156,6 +156,7 @@ popd || ynh_die
|
||||||
|
|
||||||
# Set permissions on app files
|
# Set permissions on app files
|
||||||
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
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue