mirror of
https://github.com/msmhq/msm.git
synced 2024-08-30 18:12:35 +00:00
Remove exit if useradd command fails
This would be the case if the user already exists
This commit is contained in:
parent
4a830b3c7a
commit
3e89a8a347
@ -54,7 +54,7 @@ function install_dependencies() {
|
|||||||
# Verifies existence of or adds user for Minecraft server (default "minecraft")
|
# Verifies existence of or adds user for Minecraft server (default "minecraft")
|
||||||
function add_minecraft_user() {
|
function add_minecraft_user() {
|
||||||
install_log "Creating default user '${msm_user}'"
|
install_log "Creating default user '${msm_user}'"
|
||||||
sudo useradd ${msm_user} || install_error "Couldn't create server user"
|
sudo useradd ${msm_user}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Verifies existence and permissions of msm server directory (default /opt/msm)
|
# Verifies existence and permissions of msm server directory (default /opt/msm)
|
||||||
|
Loading…
Reference in New Issue
Block a user