Modifed post-install script

dev
santic-zombie 5 months ago
parent 991c0a7fe9
commit cf1221e089
  1. 5
      opennebula-common/opennebula-common.post-install

@ -7,6 +7,7 @@ ONE_GROUP=cloud
ONE_USER=oneadmin
ONE_UID=9869
ONE_GID=9869
ONE_COMMENT="OpenNebula administrator account"
create_cloudgroup() {
if ! getent group $ONE_GROUP > /dev/null 2>&1; then
@ -16,7 +17,7 @@ create_cloudgroup() {
create_oneuser() {
if ! getent passwd $ONE_USER > /dev/null 2>&1; then
adduser --system --uid $ONE_UID --ingroup $ONE_GROUP --home $ONEHOME --shell /bin/ash $ONE_USER
adduser --system --gecos $ONE_COMMENT --uid $ONE_UID --ingroup $ONE_GROUP --home $ONEHOME --shell /bin/ash $ONE_USER
else
ONEHOME=`getent passwd $ONE_USER | cut -f6 -d:`
# Renable user (give him a shell)
@ -58,3 +59,5 @@ do
chown "${ONE_USER}:${ONE_GROUP}" "${F}"
done
exit 0

Loading…
Cancel
Save