First update is init
This commit is contained in:
parent
500c93b72f
commit
b0a875cfea
17
update
17
update
|
@ -6,9 +6,22 @@ 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
|
||||||
test "$($SOURCE_DIR/lib/api/sync)" = "127" && slog "sync failed" - "update" && exit;
|
if [ -e /home/sats/satsd/source/first_update ]; 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;
|
||||||
|
else
|
||||||
|
|
||||||
|
test "$($SOURCE_DIR/lib/api/sync)" = "127" && slog "sync failed" - "update" && exit;
|
||||||
|
test $? -ne 0 && exit 127;
|
||||||
|
fi;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
test $? -ne 0 && exit 127;
|
|
||||||
|
|
||||||
# [2] Update source
|
# [2] Update source
|
||||||
BRANCH=$(cat $BRANCH_CONF);
|
BRANCH=$(cat $BRANCH_CONF);
|
||||||
|
|
Loading…
Reference in New Issue