docker-headphones/init/10_new_user.sh

12 lines
336 B
Bash
Raw Normal View History

2015-07-15 11:10:00 -05:00
#!/bin/bash
2015-07-15 18:29:19 +02:00
if [ ! "$(id -u abc)" -eq "$PUID" ]; then usermod -o -u "$PUID" abc ; fi
2015-07-15 11:10:00 -05:00
if [ ! "$(id -g abc)" -eq "$PGID" ]; then groupmod -o -g "$PGID" abc ; fi
echo "
-----------------------------------
GID/UID
-----------------------------------
User uid: $(id -u abc)
User gid: $(id -g abc)
-----------------------------------
2015-07-15 18:29:19 +02:00
"