ソースを参照

Tweaks to s6 scripts

Jamie Curnow 4 年 前
コミット
f2acb9e150
2 ファイル変更6 行追加3 行削除
  1. 4 1
      docker/rootfs/etc/cont-init.d/01_perms.sh
  2. 2 2
      scripts/start-dev

+ 4 - 1
docker/rootfs/etc/cont-init.d/01_perms.sh

@@ -1,4 +1,7 @@
 #!/usr/bin/with-contenv bash
+set -e
 
 mkdir -p /data/logs
-chown -R root:root /data/logs
+echo "Changing ownership of /data/logs to $(id -u):$(id -g)"
+chown -R "$(id -u):$(id -g)" /data/logs
+

+ 2 - 2
scripts/start-dev

@@ -18,10 +18,10 @@ if hash docker-compose 2>/dev/null; then
 
 	if [ "$1" == "-f" ]; then
 		echo -e "${BLUE}❯ ${YELLOW}Following Backend Container:${RESET}"
-		docker logs -f npmdev_npm_1
+		docker logs -f npm_core
 	else
 		echo -e "${YELLOW}Hint:${RESET} You can follow the output of some of the containers with:"
-		echo "  docker logs -f npmdev_npm_1"
+		echo "  docker logs -f npm_core"
 	fi
 else
 	echo -e "${RED}❯ docker-compose command is not available${RESET}"