diff --git a/root/etc/cont-init.d/82-sma-update.bash b/root/etc/cont-init.d/82-sma-update.bash new file mode 100644 index 0000000..2770d27 --- /dev/null +++ b/root/etc/cont-init.d/82-sma-update.bash @@ -0,0 +1,16 @@ +#!/usr/bin/with-contenv bash + +# 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 + +# update autoprocess +python3 ${SMA_PATH}/update.py + +exit $?