1
0
Fork 0
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:
navanchauhan 2022-07-20 18:40:11 -06:00
parent 94c3ead929
commit 1807fc5f4c

View file

@ -102,9 +102,9 @@ chown -R $app:www-data "$datadir"
# Run migrate for new install go-shiori/shiori#447 # Run migrate for new install go-shiori/shiori#447
pushd $final_path/ pushd $final_path/
sudo -u $app $final_path/shiori --portable migrate ynh_exec_as $app $final_path/shiori --portable migrate
sudo -u $app mv shiori-data/shiori.db $datadir ynh_exec_as $app mv shiori-data/shiori.db $datadir
rm -r shiori-data ynh_secure_remove --file=$final_path/shiori-data
popd popd
#================================================= #=================================================