fix updater
This commit is contained in:
parent
760ac36149
commit
b4a4809606
|
@ -1,5 +1,5 @@
|
|||
#!/bin/bash
|
||||
# version: 0.0.13
|
||||
# version: 0.0.14
|
||||
# file: upd
|
||||
# Folder: /usr/local/bin
|
||||
# By echolib
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue