Commit 85702c7d by Oliver Pinter

check for cloud user before adding them

parent cbbe90ba
...@@ -2,9 +2,16 @@ ...@@ -2,9 +2,16 @@
pkg install -y devel/git lang/python devel/py-pip sysutils/screen editors/vim-lite pkg install -y devel/git lang/python devel/py-pip sysutils/screen editors/vim-lite
# create the required backdoor user grep "^cloud:" /etc/passwd > /dev/null
pw user add cloud -m ret=$?
pw group mod wheel -m cloud if [ $ret -ne 0 ]
then
# create the required backdoor user
pw user add cloud -m
pw group mod wheel -m cloud
fi
exit
if [ ! -d /usr/ports ] if [ ! -d /usr/ports ]
then then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment