From 80fd7c027e660f89821f4b94ce4f35fda391d8b3 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 4 May 2015 10:55:13 +0200 Subject: [PATCH] create user if it does not exist --- vm/pandora_install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vm/pandora_install.sh b/vm/pandora_install.sh index 7cdca59f..33035712 100755 --- a/vm/pandora_install.sh +++ b/vm/pandora_install.sh @@ -1,6 +1,8 @@ #!/bin/bash PANDORA=${PANDORA-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'` if [ -e /etc/os-release ]; then . /etc/os-release