Fixed post-install script and added post-install

This commit is contained in:
santic-zombie
2024-06-22 23:09:45 +03:00
parent cf1221e089
commit 08154d989c
3 changed files with 13 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ create_cloudgroup() {
create_oneuser() {
if ! getent passwd $ONE_USER > /dev/null 2>&1; then
adduser --system --gecos $ONE_COMMENT --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)