mirror of
https://github.com/YunoHost-Apps/shiori_ynh.git
synced 2024-09-03 20:26:17 +02:00
use helpers
This commit is contained in:
parent
94c3ead929
commit
1807fc5f4c
1 changed files with 3 additions and 3 deletions
|
@ -102,9 +102,9 @@ chown -R $app:www-data "$datadir"
|
|||
|
||||
# Run migrate for new install go-shiori/shiori#447
|
||||
pushd $final_path/
|
||||
sudo -u $app $final_path/shiori --portable migrate
|
||||
sudo -u $app mv shiori-data/shiori.db $datadir
|
||||
rm -r shiori-data
|
||||
ynh_exec_as $app $final_path/shiori --portable migrate
|
||||
ynh_exec_as $app mv shiori-data/shiori.db $datadir
|
||||
ynh_secure_remove --file=$final_path/shiori-data
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue