Using su instead of sudo, fixing Dokcerfile
All checks were successful
continuous-integration/drone/pr Build is passing

This commit is contained in:
david 2024-05-20 15:23:42 +02:00
parent 563b1dd3f3
commit 9db9f5ce3c
2 changed files with 3 additions and 3 deletions

View File

@ -5,5 +5,5 @@ RUN apt-get update && apt-get install -y \
unzip \ unzip \
zip \ zip \
&& rm -rf /var/lib/apt/lists/* && 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" ] ENTRYPOINT [ "/usr/local/bin/warp4j" ]

View File

@ -83,11 +83,11 @@ install() {
fail fail
fi fi
echo "Creating $LOCATION/$name..." echo "Creating $LOCATION/$name..."
sudo install -D \ su -c "install -D \
--mode=755 \ --mode=755 \
--owner=root \ --owner=root \
--group=root \ --group=root \
"$temp_location" "$LOCATION" '$temp_location' '$LOCATION'"
if [ $? != 0 ]; then if [ $? != 0 ]; then
echo "Error: Failed to install $name" >&2 echo "Error: Failed to install $name" >&2
fail fail