fix updater

This commit is contained in:
Cyrille L 2022-03-28 16:03:01 +02:00
parent 760ac36149
commit b4a4809606
2 changed files with 3 additions and 4 deletions

View File

@ -1,5 +1,5 @@
#!/bin/bash
# version: 0.0.13
# version: 0.0.14
# file: upd
# Folder: /usr/local/bin
# By echolib

View File

@ -48,13 +48,12 @@ curl -L -o ${app_name}-main.tar.gz "$repo_tar" 2>/dev/null
tar -xzf "${app_name}-main.tar.gz"
cd "${app_name}-main"
rsync -a "usr/local/bin/$app_name" "/usr/local/bin/$app_name"
cp -f "usr/local/bin/$app_name" "/usr/local/bin/$app_name"
rsync -a --delete "var/lib/$app_name/" "/var/lib/$app_name/"
rsync -a --delete "etc/$app_name/" "/etc/$app_name/"
upd -v
rm -rf "/tmp/${app_name}-main"
cd /tmp
rm -f "${app_name}-main.tar.gz"
rm -f "/tmp/${app_name}-main.tar.gz"
}