[fix] update can now touch /target/sync (removed exit before)
This commit is contained in:
parent
d41b125dc2
commit
f459a7c4be
10
update
10
update
|
@ -8,13 +8,17 @@ source $__DIR__/lib/include/bash/func;
|
||||||
# [1] Send data + fetch configuration
|
# [1] Send data + fetch configuration
|
||||||
if [ ! -e /target/sync ]; then
|
if [ ! -e /target/sync ]; then
|
||||||
|
|
||||||
test "$($SOURCE_DIR/lib/api/init)" = "127" && slog "init failed" - "update" && exit;
|
$SOURCE_DIR/lib/api/init;
|
||||||
test $? -ne 0 && exit 127;
|
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
slog "init failed" - "update";
|
||||||
|
exit 127;
|
||||||
|
fi;
|
||||||
|
|
||||||
touch /target/sync;
|
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;
|
||||||
test $? -ne 0 && exit 127;
|
test $? -ne 0 && exit 127;
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue