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

Move https config and force upgrade

This commit is contained in:
tituspijean 2024-01-12 21:33:48 +01:00 committed by GitHub
parent c1cdca5b2c
commit f9df99cb57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -111,11 +111,9 @@ else
pushd $install_dir/ghost
# Make sure the app does not expect to manage its own process
ynh_exec_as $app $ynh_node_load_PATH $install_dir/node_modules/ghost-cli/bin/ghost config --process local
# Make sure the app config runs on https
ynh_exec_as $app $ynh_node_load_PATH $install_dir/node_modules/ghost-cli/bin/ghost config --url https://$domain$path
# Upgrade Ghost itself
ynh_exec_as $app $ynh_node_load_PATH $install_dir/node_modules/ghost-cli/bin/ghost update $(ynh_app_upstream_version) \
--no-prompt --no-auto-rollback --no-restart
--no-prompt --no-auto-rollback --no-restart --force
popd
fi
@ -124,6 +122,7 @@ fi
pushd $install_dir/ghost
ynh_exec_as $app $ynh_node_load_PATH $install_dir/node_modules/ghost-cli/bin/ghost config \
--port $port --process local \
--url https://$domain$path \
--mail SMTP --mailuser noreply@$domain --mailpass $mail_pwd --mailhost 127.0.0.1 --mailport 25
popd