diff --git a/root/etc/cont-init.d/20-script-update.bash b/root/etc/cont-init.d/20-script-update.bash new file mode 100644 index 0000000..56bd2ea --- /dev/null +++ b/root/etc/cont-init.d/20-script-update.bash @@ -0,0 +1,9 @@ +#!/usr/bin/with-contenv bash + +# update from git +if [[ "${UPDATE}" == "true" ]]; then + git -C ${SABSCRIPTS_PATH} pull origin master && \ + git -C ${SMA_PATH} pull origin master +fi + +exit 0