1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/castopod_ynh.git synced 2024-09-03 18:16:14 +02:00

secure final_path

This commit is contained in:
ericgaspar 2021-03-25 09:40:32 +01:00
parent 067a1d037a
commit 4fa51dd51b
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 6 additions and 12 deletions

View file

@ -98,9 +98,6 @@ ynh_script_progression --message="Configuring Castopod..." --weight=1
ynh_add_config --template="../conf/.env.example" --destination="$final_path/.env" ynh_add_config --template="../conf/.env.example" --destination="$final_path/.env"
# Recalculate and store the config file checksum into the app settings
ynh_store_file_checksum --file="$final_path/.env"
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION
#================================================= #=================================================
@ -108,9 +105,8 @@ ynh_store_file_checksum --file="$final_path/.env"
#================================================= #=================================================
# Set permissions to app files # Set permissions to app files
chown -R $app: $final_path chown -R $app:$app $final_path
chmod -R 755 $final_path chmod o-rwx $final_path
chmod 600 $final_path/.env chmod 600 $final_path/.env
#================================================= #=================================================

View file

@ -72,9 +72,8 @@ ynh_restore_file --origin_path="$final_path"
#================================================= #=================================================
# Set permissions to app files # Set permissions to app files
chown -R $app: $final_path chown -R $app:$app $final_path
chmod -R 755 $final_path chmod o-rwx $final_path
chmod 600 $final_path/.env chmod 600 $final_path/.env
#================================================= #=================================================

View file

@ -108,9 +108,8 @@ ynh_add_fpm_config --package="$extra_php_dependencies"
#================================================= #=================================================
# Set permissions to app files # Set permissions to app files
chown -R $app: $final_path chown -R $app:$app $final_path
chmod -R 755 $final_path chmod o-rwx $final_path
chmod 600 $final_path/.env chmod 600 $final_path/.env
#================================================= #=================================================