From 7b7721bc5fb8e047841ace446516edc1bd8152af Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Sun, 15 Mar 2020 22:35:54 -0400 Subject: [PATCH] Update 80-sma-link.bash --- root/etc/cont-init.d/80-sma-link.bash | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/root/etc/cont-init.d/80-sma-link.bash b/root/etc/cont-init.d/80-sma-link.bash index 6f2c05f..2dd7211 100644 --- a/root/etc/cont-init.d/80-sma-link.bash +++ b/root/etc/cont-init.d/80-sma-link.bash @@ -35,4 +35,13 @@ ln -s "/config/scripts/sma/sma.log" "/var/log/sma.log" && \ # set permissions chmod 0666 "/config/sma"/* +# update from git +if [[ "${SMA_UPDATE}" == "true" ]]; then + git -C ${SMA_PATH} pull origin master +fi + +# permissions +chown -R abc:abc ${SMA_PATH} +chmod -R 775 ${SMA_PATH}/*.sh + exit 0