worldstorage folder now created by new server command.

Also creates a "readme.txt" file which says "MSM requires all your
worlds be moved into this directory."
This commit is contained in:
Marcus Whybrow 2012-07-10 02:18:50 +01:00
parent f5c6ade219
commit 5802a40d1e

View File

@ -697,6 +697,8 @@ server_create() {
as_user "$USERNAME" "touch '$SERVER_STORAGE_PATH/$1/$DEFAULT_BANNED_PLAYERS'"
as_user "$USERNAME" "touch '$SERVER_STORAGE_PATH/$1/$DEFAULT_OPS'"
as_user "$USERNAME" "touch '$SERVER_STORAGE_PATH/$1/$DEFAULT_PROPERTIES'"
as_user "$USERNAME" "mkdir -p '$SERVER_STORAGE_PATH/$1/$DEFAULT_WORLD_STORAGE_PATH'"
as_user "$USERNAME" "echo \"MSM requires all your worlds be moved into this directory.\" > '$SERVER_STORAGE_PATH/$1/$DEFAULT_WORLD_STORAGE_PATH/readme.txt'"
echo "Done."
# Now that the new server has been created, we must call init again