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

Merge pull request #55 from YunoHost-Apps/env

reorder steps
This commit is contained in:
yalh76 2019-06-01 07:49:01 +02:00 committed by GitHub
commit c2eed8b654
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -158,6 +158,7 @@ ynh_install_composer --phpversion="7.2" --workdir="$final_path"
#=================================================
config="$final_path/.env"
ynh_backup_if_checksum_is_different --file="$config"
cp ../conf/.env "$config"
ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="$config"
@ -168,6 +169,9 @@ ynh_replace_string --match_string="__DB_NAME__" --replace_string="$db_name" --t
ynh_replace_string --match_string="__DB_USER__" --replace_string="$db_user" --target_file="$config"
ynh_replace_string --match_string="__DB_PWD__" --replace_string="$db_pwd" --target_file="$config"
# Recalculate and store the checksum of the file for the next upgrade.
ynh_store_file_checksum --file="$config"
#=================================================
# DEPLOYMENT
#=================================================
@ -183,15 +187,6 @@ pushd "$final_path"
php7.2 artisan horizon:purge
popd
#=================================================
# STORE THE CONFIG FILE CHECKSUM
#=================================================
ynh_backup_if_checksum_is_different --file="$config"
# Recalculate and store the checksum of the file for the next upgrade.
ynh_store_file_checksum --file="$config"
#=================================================
# SETUP SYSTEMD
#=================================================