fix: ending updater script
This commit is contained in:
parent
846eb00832
commit
f3ce7cd89b
|
@ -41,6 +41,7 @@ script__versions
|
||||||
&& return 1
|
&& return 1
|
||||||
|
|
||||||
# Get archive
|
# Get archive
|
||||||
|
myfolder=$PWD
|
||||||
cd /tmp
|
cd /tmp
|
||||||
curl -L -o ${app_name}-main.tar.gz "$repo_tar" 2>/dev/null
|
curl -L -o ${app_name}-main.tar.gz "$repo_tar" 2>/dev/null
|
||||||
! [[ -f "${app_name}-main.tar.gz" ]] \
|
! [[ -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 -rf "/tmp/${app_name}-main"
|
||||||
rm -f "/tmp/${app_name}-main.tar.gz"
|
rm -f "/tmp/${app_name}-main.tar.gz"
|
||||||
|
|
||||||
|
cd $myfolder
|
||||||
bash
|
bash
|
||||||
upd -v
|
upd -v
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue