get rid of the message "No directory, logging in with HOME=/"

While performing operations with the user mineraft a message appears that the home directory is not available.
This commit is contained in:
JohannesM 2013-08-18 18:04:56 +02:00
parent abdc13cd12
commit c588922ab1

View File

@ -54,7 +54,8 @@ function install_dependencies() {
# Verifies existence of or adds user for Minecraft server (default "minecraft")
function add_minecraft_user() {
install_log "Creating default user '${msm_user}'"
sudo useradd ${msm_user}
sudo useradd ${msm_user} \
--home /opt/msm
}
# Verifies existence and permissions of msm server directory (default /opt/msm)