forked from 0x2620/pandora
create user if it does not exist
This commit is contained in:
parent
956464b128
commit
80fd7c027e
1 changed files with 2 additions and 0 deletions
|
@ -1,6 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
PANDORA=${PANDORA-pandora}
|
PANDORA=${PANDORA-pandora}
|
||||||
echo Installing pandora with user: $PANDORA
|
echo Installing pandora with user: $PANDORA
|
||||||
|
getent passwd $PANDORA > /dev/null 2>&1 || adduser --disabled-password --gecos "" $PANDORA
|
||||||
|
|
||||||
LXC=`grep -q lxc /proc/1/environ && echo 'yes' || echo 'no'`
|
LXC=`grep -q lxc /proc/1/environ && echo 'yes' || echo 'no'`
|
||||||
if [ -e /etc/os-release ]; then
|
if [ -e /etc/os-release ]; then
|
||||||
. /etc/os-release
|
. /etc/os-release
|
||||||
|
|
Loading…
Reference in a new issue