From 19828c52e5b50de79739e2c206382be74e596847 Mon Sep 17 00:00:00 2001 From: Stephane Desneux Date: Wed, 30 Nov 2016 23:53:02 +0100 Subject: group build files into folder INSTALL Change-Id: Ib76d53f9ff0aed21f12ebd7aac66c1e877bea4a5 Signed-off-by: Stephane Desneux --- docker/firstrun.sh | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 docker/firstrun.sh (limited to 'docker/firstrun.sh') diff --git a/docker/firstrun.sh b/docker/firstrun.sh deleted file mode 100644 index 2b70a92..0000000 --- a/docker/firstrun.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash -x - -# fail at first error ! -set -e - -# redirect outputs to log -LOGFILE=/var/log/firstrun.log -exec >$LOGFILE 2>&1 - -echo $(date +"%Y%m%d %H:%M:%S") Starting firstrun script - -# source same file with .conf extension -. ${0%.sh}.conf - -# run the scripts found in /root/firstrun.d - -for x in /root/firstrun.d/*; do - case $(basename $x) in - [0-9][0-9]_*) - echo "--------------------- start script $x ---------------------" - . $x - echo "--------------------- end of script $x ---------------------" - ;; - *) - ;; - esac - -done - -######################### cleanup ##################### - -# remove firstrun -rm -rf /root/firstrun.* -rm -rf /etc/systemd/system/multi-user.target.wants/firstrun.* -systemctl daemon-reload - -rm -f $LOGFILE -- cgit