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:
parent
067a1d037a
commit
4fa51dd51b
3 changed files with 6 additions and 12 deletions
|
@ -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
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue