From fc4d80573622b76dde2fd1b6b492b1489b8e214a Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Mon, 8 May 2017 16:25:09 +0200 Subject: [PATCH] [update] according to logauth-sync bigupdate (0e9e40f154) --- first_update | 0 update | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 first_update diff --git a/first_update b/first_update deleted file mode 100644 index e69de29..0000000 diff --git a/update b/update index d8170dd..6a87497 100755 --- a/update +++ b/update @@ -6,12 +6,12 @@ source $__DIR__/lib/include/bash/const; source $__DIR__/lib/include/bash/func; # [1] Send data + fetch configuration -if [ -e /home/sats/satsd/source/first_update ]; then +if [ ! -e /target/sync ]; then test "$($SOURCE_DIR/lib/api/init)" = "127" && slog "sync failed" - "update" && exit; test $? -ne 0 && exit 127; - rm /home/sats/satsd/source/first_update; + touch /target/sync; else test "$($SOURCE_DIR/lib/api/sync)" = "127" && slog "sync failed" - "update" && exit;