[update] according to logauth-sync bigupdate (0e9e40f154)

This commit is contained in:
xdrm-brackets 2017-05-08 16:25:09 +02:00
parent 0918f1f490
commit fc4d805736
2 changed files with 2 additions and 2 deletions

View File

4
update
View File

@ -6,12 +6,12 @@ source $__DIR__/lib/include/bash/const;
source $__DIR__/lib/include/bash/func; source $__DIR__/lib/include/bash/func;
# [1] Send data + fetch configuration # [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 "$($SOURCE_DIR/lib/api/init)" = "127" && slog "sync failed" - "update" && exit;
test $? -ne 0 && exit 127; test $? -ne 0 && exit 127;
rm /home/sats/satsd/source/first_update; touch /target/sync;
else else
test "$($SOURCE_DIR/lib/api/sync)" = "127" && slog "sync failed" - "update" && exit; test "$($SOURCE_DIR/lib/api/sync)" = "127" && slog "sync failed" - "update" && exit;