Tweaks to s6 scripts

This commit is contained in:
Jamie Curnow 2021-07-25 21:09:02 +10:00
parent 6f3a00c9b8
commit f2acb9e150
2 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -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}"