From b4a4809606cb3ba992f2dfa477c4c1d24f5be0bc Mon Sep 17 00:00:00 2001 From: Cyrille L Date: Mon, 28 Mar 2022 16:03:01 +0200 Subject: [PATCH] fix updater --- usr/local/bin/upd | 2 +- var/lib/upd/scripts/updater | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/usr/local/bin/upd b/usr/local/bin/upd index cd34cd7..f56e44c 100755 --- a/usr/local/bin/upd +++ b/usr/local/bin/upd @@ -1,5 +1,5 @@ #!/bin/bash -# version: 0.0.13 +# version: 0.0.14 # file: upd # Folder: /usr/local/bin # By echolib diff --git a/var/lib/upd/scripts/updater b/var/lib/upd/scripts/updater index d863d19..5c85026 100644 --- a/var/lib/upd/scripts/updater +++ b/var/lib/upd/scripts/updater @@ -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" }