vanikam/scripts/entrypoint.sh

16 lines
306 B
Bash
Raw Normal View History

2024-07-11 02:47:14 +05:30
#!/bin/bash
VANIKAM_USER=vanikam
export HOME=/home/$VANIKAM_USER
#adduser --disabled-password --shell /bin/bash --home $HOME --uid $USER_ID user
#--uid
if id "$1" &>/dev/null; then
echo "User $VANIKAM_USER exists"
else
useradd -b /home -m -s /bin/bash $VANIKAM_USER
fi
su $VANIKAM_USER -c 'vanikam'