diff --git a/var/lib/upd/scripts/updater b/var/lib/upd/scripts/updater index 778f558..d13d4a8 100644 --- a/var/lib/upd/scripts/updater +++ b/var/lib/upd/scripts/updater @@ -41,6 +41,7 @@ script__versions && return 1 # Get archive +myfolder=$PWD cd /tmp curl -L -o ${app_name}-main.tar.gz "$repo_tar" 2>/dev/null ! [[ -f "${app_name}-main.tar.gz" ]] \ @@ -57,6 +58,7 @@ rsync -a --delete "etc/$app_name/" "/etc/$app_name/" rm -rf "/tmp/${app_name}-main" rm -f "/tmp/${app_name}-main.tar.gz" +cd $myfolder bash upd -v }