Browse Source

Use install instead of cp (#67)

swap
Aaron Dewes 5 years ago
committed by GitHub
parent
commit
7967ad4787
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      stage2/05-docker-compose/01-run.sh

7
stage2/05-docker-compose/01-run.sh

@ -10,9 +10,6 @@ wget -qO- "https://raw.githubusercontent.com/getumbrel/umbrel/v${UMBREL_VERSION}
chown -R ${FIRST_USER_NAME}:${FIRST_USER_NAME} /home/${FIRST_USER_NAME}
EOF
# Maybe generate docker-compose file so we can use it
chmod 755 files/compose-service
# Docker compose service
on_chroot << EOF
mkdir -p /etc/init.d
@ -26,7 +23,7 @@ mkdir -p /etc/rc6.d
EOF
echo "Copying the compose service to rootfs (etc/init.d)"
cp files/compose-service ${ROOTFS_DIR}/etc/init.d/umbrelbox
install -m 755 files/compose-service ${ROOTFS_DIR}/etc/init.d/umbrelbox
echo "Pulling Docker images required to run Umbrel services"
@ -40,4 +37,4 @@ while IFS= read -r image; do
done <<< "$IMAGES"
mkdir -p ${ROOTFS_DIR}/var/lib/docker
rsync -avPHSX /var/lib/docker ${ROOTFS_DIR}/var/lib/
rsync -avPHSX /var/lib/docker ${ROOTFS_DIR}/var/lib/

Loading…
Cancel
Save