From 6283d82a0784939a8a0a18b62109501ee58f63c5 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Tue, 8 Sep 2020 06:37:55 -0400 Subject: [PATCH] Update 30-script-update.bash --- root/etc/cont-init.d/30-script-update.bash | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/root/etc/cont-init.d/30-script-update.bash b/root/etc/cont-init.d/30-script-update.bash index b4c5375..ed838a3 100644 --- a/root/etc/cont-init.d/30-script-update.bash +++ b/root/etc/cont-init.d/30-script-update.bash @@ -1,16 +1,8 @@ #!/usr/bin/with-contenv bash # update from git -if [[ "${UPDATE_EXT}" == "TRUE" ]]; then - git -C ${SABSCRIPTS_PATH} reset --hard HEAD && \ - git -C ${SABSCRIPTS_PATH} pull origin master -fi - -# update from git -if [[ "${UPDATE_SMA}" == "TRUE" ]]; then - git -C ${SMA_PATH} reset --hard HEAD && \ - git -C ${SMA_PATH} pull origin master -fi +git -C ${SMA_PATH} reset --hard HEAD && \ +git -C ${SMA_PATH} pull origin master # update pip3 requirements pip3 install -r /usr/local/sma/setup/requirements.txt --upgrade --user