1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/shiori_ynh.git synced 2024-09-03 20:26:17 +02:00
This commit is contained in:
Éric Gaspar 2022-07-16 19:06:02 +02:00
parent ef6e9fd24b
commit b6605e506d
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 15 additions and 5 deletions

View file

@ -8,6 +8,7 @@ Type=simple
User=__APP__ User=__APP__
Group=__APP__ Group=__APP__
WorkingDirectory=__FINALPATH__/ WorkingDirectory=__FINALPATH__/
ExecStart=__FINALPATH__/shiori migrate
ExecStart=__FINALPATH__/shiori serve --port __PORT__ --webroot __PATH__ ExecStart=__FINALPATH__/shiori serve --port __PORT__ --webroot __PATH__
Restart=always Restart=always
Environment="SHIORI_DIR=__DATADIR__" Environment="SHIORI_DIR=__DATADIR__"

View file

@ -101,13 +101,13 @@ chmod -R o-rwx "$datadir"
chown -R $app:www-data "$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 # pushd $final_path
./shiori migrate # ./shiori migrate
popd # popd
#================================================= #=================================================
# SETUP SYSTEMD # SETUP SYSTEMD

View file

@ -76,6 +76,15 @@ chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path" chown -R $app:www-data "$final_path"
chmod +x "$final_path/shiori" chmod +x "$final_path/shiori"
#=================================================
# MIGRATE DATABASE
#=================================================
ynh_script_progression --message="Migrate database..." --weight=10
# pushd $final_path
# ./shiori migrate
# popd
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION
#================================================= #=================================================