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