Merge pull request #188 from MinecraftServerControl/set-home

mscs: use the set-home argument to sudo to fix $HOME
This commit is contained in:
Jason M. Wood 2018-05-25 17:34:50 -07:00 committed by GitHub
commit 2116698021
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
mscs
View File

@ -31,5 +31,5 @@ MSCS_ARGS="-p $PROG -l $LOCATION -c $MSCS_DEFAULTS $@"
if [ "$USER_NAME" = "$(whoami)" ]; then
msctl $MSCS_ARGS
else
sudo "PATH=$PATH" -u $USER_NAME msctl $MSCS_ARGS
sudo "PATH=$PATH" -u $USER_NAME --set-home msctl $MSCS_ARGS
fi