echo "$0: warning: no pw set for $user" >&2
fi
}
-au() {
- if ! $ROOTCMD getent passwd $1; then
- $ROOTCMD useradd -m -s /bin/bash $1 || [[ $? == 9 ]]
+au() { # add user
+ if ! $ROOTCMD getent passwd ${@: -1}; then
+ $ROOTCMD useradd -m -s /bin/bash $@
fi
}
dir=$(dirname $dir)
if [[ $dir == /p ]]; then break; fi
done
+
+au -s /bin/false --home-dir /var/lib/bitcoind bitcoin