diff --git a/scripts/install b/scripts/install index 284a5a4..1b8d6c2 100755 --- a/scripts/install +++ b/scripts/install @@ -98,9 +98,6 @@ ynh_script_progression --message="Configuring Castopod..." --weight=1 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 #================================================= @@ -108,9 +105,8 @@ ynh_store_file_checksum --file="$final_path/.env" #================================================= # Set permissions to app files -chown -R $app: $final_path -chmod -R 755 $final_path - +chown -R $app:$app $final_path +chmod o-rwx $final_path chmod 600 $final_path/.env #================================================= diff --git a/scripts/restore b/scripts/restore index 5c1c417..76d25d3 100755 --- a/scripts/restore +++ b/scripts/restore @@ -72,9 +72,8 @@ ynh_restore_file --origin_path="$final_path" #================================================= # Set permissions to app files -chown -R $app: $final_path -chmod -R 755 $final_path - +chown -R $app:$app $final_path +chmod o-rwx $final_path chmod 600 $final_path/.env #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 9a7ddca..4b39547 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -108,9 +108,8 @@ ynh_add_fpm_config --package="$extra_php_dependencies" #================================================= # Set permissions to app files -chown -R $app: $final_path -chmod -R 755 $final_path - +chown -R $app:$app $final_path +chmod o-rwx $final_path chmod 600 $final_path/.env #=================================================