From b6605e506dfa83818342741b590db472d31153ed 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:06:02 +0200 Subject: [PATCH] Fix --- conf/systemd.service | 1 + scripts/install | 10 +++++----- scripts/upgrade | 9 +++++++++ 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/conf/systemd.service b/conf/systemd.service index b6cc2dd..b356d0c 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -8,6 +8,7 @@ Type=simple User=__APP__ Group=__APP__ WorkingDirectory=__FINALPATH__/ +ExecStart=__FINALPATH__/shiori migrate ExecStart=__FINALPATH__/shiori serve --port __PORT__ --webroot __PATH__ Restart=always Environment="SHIORI_DIR=__DATADIR__" diff --git a/scripts/install b/scripts/install index fc81027..ee6fe02 100755 --- a/scripts/install +++ b/scripts/install @@ -101,13 +101,13 @@ chmod -R o-rwx "$datadir" chown -R $app:www-data "$datadir" #================================================= -# INSTALL THE SHIORI +# 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 d1a336b..0822103 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -76,6 +76,15 @@ chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" chmod +x "$final_path/shiori" +#================================================= +# MIGRATE DATABASE +#================================================= +ynh_script_progression --message="Migrate database..." --weight=10 + +# pushd $final_path +# ./shiori migrate +# popd + #================================================= # NGINX CONFIGURATION #=================================================