mirror of
https://github.com/YunoHost-Apps/invidious_ynh.git
synced 2024-09-03 19:15:55 +02:00
Update upgrade
This commit is contained in:
parent
c99561193d
commit
f35d7aa659
1 changed files with 3 additions and 3 deletions
|
@ -74,8 +74,9 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
|
|||
then
|
||||
ynh_script_progression --message="Upgrading source files..." --weight=5
|
||||
|
||||
ynh_exec_as $app (
|
||||
pushd "$final_path" || ynh_die
|
||||
|
||||
pushd "$final_path" || ynh_die
|
||||
ynh_exec_as $app
|
||||
currentVersion=$(git rev-list --max-count=1 --abbrev-commit HEAD)
|
||||
git pull
|
||||
for i in `git rev-list --reverse --abbrev-commit $currentVersion..HEAD` ; do file=./config/migrate-scripts/migrate-db-$i.sh ; [ -f $file ] && $file ; done
|
||||
|
@ -84,7 +85,6 @@ ynh_exec_as $app (
|
|||
exit
|
||||
popd || ynh_die
|
||||
fi
|
||||
)
|
||||
|
||||
#=================================================
|
||||
# NGINX CONFIGURATION
|
||||
|
|
Loading…
Reference in a new issue