From 9db9f5ce3c2f04a856f8aaa5f8cbb09acc26a99b Mon Sep 17 00:00:00 2001 From: david Date: Mon, 20 May 2024 15:23:42 +0200 Subject: [PATCH] Using su instead of sudo, fixing Dokcerfile --- Dockerfile | 2 +- install | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index c43a51b..98ad649 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,5 +5,5 @@ RUN apt-get update && apt-get install -y \ unzip \ zip \ && rm -rf /var/lib/apt/lists/* -RUN ["/bin/sh", "-c", "$(curl -fsSL https://git.phoenix.ipv64.de/public/warp4j/raw/branch/feature/update_install_script/install)"] +RUN curl -s https://git.phoenix.ipv64.de/public/warp4j/raw/branch/feature/update_install_script/install | /bin/sh -s ENTRYPOINT [ "/usr/local/bin/warp4j" ] diff --git a/install b/install index 04b4ff6..a7b9569 100755 --- a/install +++ b/install @@ -83,11 +83,11 @@ install() { fail fi echo "Creating $LOCATION/$name..." - sudo install -D \ + su -c "install -D \ --mode=755 \ --owner=root \ --group=root \ - "$temp_location" "$LOCATION" + '$temp_location' '$LOCATION'" if [ $? != 0 ]; then echo "Error: Failed to install $name" >&2 fail