diff --git a/docker/rootfs/etc/cont-init.d/01_perms.sh b/docker/rootfs/etc/cont-init.d/01_perms.sh index 669a0b7..e7875d3 100755 --- a/docker/rootfs/etc/cont-init.d/01_perms.sh +++ b/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 \ No newline at end of file +echo "Changing ownership of /data/logs to $(id -u):$(id -g)" +chown -R "$(id -u):$(id -g)" /data/logs + diff --git a/scripts/start-dev b/scripts/start-dev index a5e647f..f064a4b 100755 --- a/scripts/start-dev +++ b/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}"