From 5e076a1f9eb5743dbd02a79907b633369b8dd305 Mon Sep 17 00:00:00 2001 From: Danielle Voznyy Date: Sun, 17 Nov 2024 01:34:07 -0500 Subject: [PATCH] fix: set -e in rootless script --- Dockerfile | 5 +++-- scripts/rootless | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ff3626b..f520543 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,7 +29,8 @@ ENV\ ANSIBLE_CONFIG=/server-config/ansible.cfg\ LC_ALL=C.UTF-8\ UID=1000\ - GID=1000 + GID=1000\ + CUSTOM_SERVER=server.jar # Install ansible collections COPY config/ansible-requirements.yml /opt/ansible/requirements.yml @@ -61,7 +62,7 @@ ENV\ SERVER_NAME=dev\ HOME=/server\ TYPE=velocity\ - ANSIBLE_CONFIG=/server-config/ansible.cfg + ANSIBLE_CONFIG=/server-config/ansible.cfg\ # Install ansible & collections RUN PIPX_HOME=/opt/pipx PIPX_BIN_DIR=/usr/local/bin pipx install ansible-core diff --git a/scripts/rootless b/scripts/rootless index f89ce37..520c2e6 100644 --- a/scripts/rootless +++ b/scripts/rootless @@ -1,4 +1,5 @@ #!/bin/sh +set -e echo [Init] Running scripts as user: $(whoami)