From fc9fd62239ff709f2261f9716a5aadeb61d8dc7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sat, 16 Jul 2022 19:10:27 +0200 Subject: [PATCH] fix --- conf/systemd.service | 2 +- scripts/install | 8 ++++---- scripts/upgrade | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/conf/systemd.service b/conf/systemd.service index ffde79c..b6cc2dd 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -8,7 +8,7 @@ Type=simple User=__APP__ Group=__APP__ WorkingDirectory=__FINALPATH__/ -ExecStart=__FINALPATH__/shiori migrate serve --port __PORT__ --webroot __PATH__ +ExecStart=__FINALPATH__/shiori serve --port __PORT__ --webroot __PATH__ Restart=always Environment="SHIORI_DIR=__DATADIR__" diff --git a/scripts/install b/scripts/install index ee6fe02..71d6004 100755 --- a/scripts/install +++ b/scripts/install @@ -103,11 +103,11 @@ chown -R $app:www-data "$datadir" #================================================= # MIGRATE DATABASE #================================================= -# ynh_script_progression --message="Migrate database..." --weight=10 +ynh_script_progression --message="Migrate database..." --weight=10 -# pushd $final_path -# ./shiori migrate -# popd +pushd $final_path + ./shiori migrate +popd #================================================= # SETUP SYSTEMD diff --git a/scripts/upgrade b/scripts/upgrade index 0822103..96150de 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -81,9 +81,9 @@ chmod +x "$final_path/shiori" #================================================= ynh_script_progression --message="Migrate database..." --weight=10 -# pushd $final_path -# ./shiori migrate -# popd +pushd $final_path + ./shiori migrate +popd #================================================= # NGINX CONFIGURATION