mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Install Script - fix adduser
This commit is contained in:
@@ -54,7 +54,11 @@ accept_salt_key_remote() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
add_socore_user_master() {
|
add_socore_user_master() {
|
||||||
|
if [ $OS == 'centos' ]; then
|
||||||
|
local ADDUSER=adduser
|
||||||
|
else
|
||||||
|
local ADDUSER=useradd
|
||||||
|
fi
|
||||||
# Add user "socore" to the master. This will be for things like accepting keys.
|
# Add user "socore" to the master. This will be for things like accepting keys.
|
||||||
groupadd --gid 939 socore
|
groupadd --gid 939 socore
|
||||||
$ADDUSER --uid 939 --gid 939 --home-dir /opt/so socore
|
$ADDUSER --uid 939 --gid 939 --home-dir /opt/so socore
|
||||||
|
|||||||
Reference in New Issue
Block a user