1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/etherpad_ynh.git synced 2024-09-03 18:36:10 +02:00
This commit is contained in:
ericgaspar 2021-05-16 21:58:24 +02:00
parent 2ade736371
commit 7231f9e7ba
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 9 additions and 6 deletions

View file

@ -171,8 +171,9 @@ ynh_add_config --template="../conf/credentials.json" --destination="$final_path/
#=================================================
# Set permissions to app files
chown -R $app: $final_path
chmod o-rwx $final_path
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
chmod 600 $final_path/credentials.json
#=================================================

View file

@ -98,8 +98,9 @@ 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 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
chmod 600 $final_path/credentials.json
#=================================================

View file

@ -149,8 +149,9 @@ popd || ynh_die
#=================================================
# Set permissions on app files
chown -R $app: $final_path
chmod o-rwx $final_path
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
chmod 600 $final_path/credentials.json
#=================================================