From 312dc405eb767ce51c9c924586b5ef61c7a83411 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Wed, 18 Mar 2020 17:54:48 -0400 Subject: [PATCH] Update 30-script-update.bash --- root/etc/cont-init.d/30-script-update.bash | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/root/etc/cont-init.d/30-script-update.bash b/root/etc/cont-init.d/30-script-update.bash index 08c8da6..1941640 100644 --- a/root/etc/cont-init.d/30-script-update.bash +++ b/root/etc/cont-init.d/30-script-update.bash @@ -1,9 +1,13 @@ #!/usr/bin/with-contenv bash # update from git -if [[ "${UPDATE}" == "true" ]]; then +if [[ "${UPDATE_EXT}" == "TRUE" ]]; then git -C ${SABSCRIPTS_PATH} reset --hard HEAD && \ git -C ${SABSCRIPTS_PATH} pull origin master && \ +fi + +# update from git +if [[ "${UDPATE_SMA}" == "TRUE" ]]; then git -C ${SMA_PATH} reset --hard HEAD && \ git -C ${SMA_PATH} pull origin master fi