From 3f217f9313335db2d2dfe45bb38565ac3dbee1f5 Mon Sep 17 00:00:00 2001 From: nolim1t Date: Thu, 27 Feb 2020 18:40:52 +0700 Subject: [PATCH] Specify the name of the file. Add debugging --- stage2/04-docker-compose/01-run.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/stage2/04-docker-compose/01-run.sh b/stage2/04-docker-compose/01-run.sh index c1618a5..7547911 100755 --- a/stage2/04-docker-compose/01-run.sh +++ b/stage2/04-docker-compose/01-run.sh @@ -21,8 +21,14 @@ mkdir -p ${ROOTFS_DIR}/etc/rc5.d mkdir -p ${ROOTFS_DIR}/etc/rc0.d mkdir -p ${ROOTFS_DIR}/etc/rc1.d mkdir -p ${ROOTFS_DIR}/etc/rc6.d -cp files/compose-service ${ROOTFS_DIR}/etc/init.d + +echo "Copying the compose service to rootfs (etc and home)" +cp files/compose-service ${ROOTFS_DIR}/etc/init.d/compose-service +echo "Copying compose service to home dir (remove this later!)" +cp files/compose-service ${ROOTFS_DIR}/home/${FIRST_USER_NAME}/compose-service + # Run in chroot +echo "Enable compose service" on_chroot << EOF update-rc.d compose-service defaults update-rc.d compose-service enable