1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pixelfed_ynh.git synced 2024-09-03 20:06:04 +02:00

Keep the config file

This commit is contained in:
ericgaspar 2021-12-11 11:29:53 +01:00
parent 578ce8d4f4
commit 25377764d5
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -157,7 +157,7 @@ then
ynh_script_progression --message="Upgrading source files..." ynh_script_progression --message="Upgrading source files..."
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$final_path" ynh_setup_source --dest_dir="$final_path" --keep="$final_path/.env"
fi fi
chmod 750 "$final_path" chmod 750 "$final_path"
@ -199,12 +199,12 @@ ynh_exec_warn_less ynh_composer_exec --phpversion="$phpversion" --workdir="$fina
#================================================= #=================================================
# UPDATE A CONFIG FILE # UPDATE A CONFIG FILE
#================================================= #=================================================
ynh_script_progression --message="Updating a config file..." # ynh_script_progression --message="Updating a config file..."
ynh_add_config --template="../conf/.env" --destination="$final_path/.env" # ynh_add_config --template="../conf/.env" --destination="$final_path/.env"
chmod 400 "$final_path/.env" # chmod 400 "$final_path/.env"
chown $app:$app "$final_path/.env" # chown $app:$app "$final_path/.env"
#================================================= #=================================================
# DEPLOYMENT # DEPLOYMENT