diff --git a/flux/src/xconf.sh b/flux/src/xconf.sh index fdea627f..69c5d0b6 100644 --- a/flux/src/xconf.sh +++ b/flux/src/xconf.sh @@ -14,24 +14,25 @@ rm -f /xconf.sh # mkdir -p /var/log/supervisor # echo "" > /dev/null # $RUN + export group=headless export user=headless # group: $user, sudo match1=$(cat /etc/group |grep sudo) # groupadd > addgroup if [ -s /bin/addgroup ]; then - addgroup $user; #opsuse15 + addgroup $group; #opsuse15 test -z "$match1" && addgroup sudo else - groupadd $user; #opsuse15 + groupadd $group; #opsuse15 test -z "$match1" && groupadd sudo fi # user if [ -s /bin/adduser ]; then # busybox: adduser -s /bin/bash -G sudo u2 -S #-S 免密码询问 - adduser -s /bin/bash -G sudo $user -S + adduser -s /bin/bash -g $group -G sudo $user -S else - useradd -mp j9X2HRQvPCphA -s /bin/bash -G sudo $user + useradd -mp j9X2HRQvPCphA -s /bin/bash -g $group -G sudo $user fi