From cb5f4527112be33d106b271733fdd8386dd479a1 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Mon, 16 Mar 2020 20:13:56 -0400 Subject: [PATCH] Create 20-script-update.bash --- root/etc/cont-init.d/20-script-update.bash | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 root/etc/cont-init.d/20-script-update.bash 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