mirror of
https://github.com/MinecraftServerControl/mscs.git
synced 2024-11-15 06:48:16 -07:00
Merge pull request #188 from MinecraftServerControl/set-home
mscs: use the set-home argument to sudo to fix $HOME
This commit is contained in:
commit
2116698021
2
mscs
2
mscs
@ -31,5 +31,5 @@ MSCS_ARGS="-p $PROG -l $LOCATION -c $MSCS_DEFAULTS $@"
|
|||||||
if [ "$USER_NAME" = "$(whoami)" ]; then
|
if [ "$USER_NAME" = "$(whoami)" ]; then
|
||||||
msctl $MSCS_ARGS
|
msctl $MSCS_ARGS
|
||||||
else
|
else
|
||||||
sudo "PATH=$PATH" -u $USER_NAME msctl $MSCS_ARGS
|
sudo "PATH=$PATH" -u $USER_NAME --set-home msctl $MSCS_ARGS
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user