Using su instead of sudo, fixing Dokcerfile
All checks were successful
continuous-integration/drone/pr Build is passing
All checks were successful
continuous-integration/drone/pr Build is passing
This commit is contained in:
parent
563b1dd3f3
commit
9db9f5ce3c
@ -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" ]
|
||||
|
4
install
4
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
|
||||
|
Loading…
Reference in New Issue
Block a user