Skip to content

Commit

Permalink
Adding /usr/sbin/ to PATH in adduser.sh for alpinelinux
Browse files Browse the repository at this point in the history
s6 3.0.0.2 does not set PATH properly which makes
adduser not work. Setting it till future version
allows setting PATH.
  • Loading branch information
komailo committed Mar 1, 2022
1 parent 3d05515 commit 2a26f8f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions alpinelinux/root/etc/cont-init.d/01-adduser.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/command/with-contenv bash
# shellcheck shell=bash

export PATH=$PATH:/usr/sbin/ # s6 3.0.0.2 doesn't set PATH properly
set -eu

if [[ $EUID -ne 0 ]]; then
Expand Down

0 comments on commit 2a26f8f

Please sign in to comment.