diff --git a/bash_completion/msm b/bash_completion/msm index 92b4785..758bf79 100644 --- a/bash_completion/msm +++ b/bash_completion/msm @@ -21,14 +21,14 @@ MSM="${MSM_SCRIPT:-/etc/init.d/msm}" _msm() { source "$MSM" - + local base current options COMPREPLY=() - + current="${COMP_WORDS[$COMP_CWORD]}" manager_property SERVER_STORAGE_PATH - + if [[ $COMP_CWORD == 1 ]]; then if [ -d "$SETTINGS_SERVER_STORAGE_PATH" ]; then local servers="$(ls -1 "$SETTINGS_SERVER_STORAGE_PATH")" @@ -80,7 +80,7 @@ _msm() { server_get_id "${COMP_WORDS[1]}" local sid="$RETURN" fi - + local server_path="$SETTINGS_SERVER_STORAGE_PATH/${COMP_WORDS[1]}" if [[ "${COMP_WORDS[1]}" == "all" ]] || [ -e "$server_path" ]; then @@ -132,7 +132,7 @@ _msm() { if [[ $COMP_CWORD == 3 && -d "$SETTINGS_JAR_STORAGE_PATH" ]]; then options="$(ls -1 "$SETTINGS_JAR_STORAGE_PATH")" fi - + if [[ $COMP_CWORD == 4 && -d "$SETTINGS_JAR_STORAGE_PATH/${COMP_WORDS[3]}" ]]; then options="$(find "$SETTINGS_JAR_STORAGE_PATH/${COMP_WORDS[3]}" -type f -name "*.jar" -exec basename {} \;)" fi @@ -241,13 +241,13 @@ _msm() { fi ;; esac - + fi fi ;; esac fi - + COMPREPLY=( $(compgen -W "${options}" -- ${current}) ) return 0 } diff --git a/cron/msm b/cron/msm index d92b64d..f985429 100644 --- a/cron/msm +++ b/cron/msm @@ -1,12 +1,12 @@ # # Minecraft Server Manager Cron -# +# # Backs up worlds, rolls logs, moves worlds in RAM to disk, # starts crashed servers, and deletes old archives -# +# # For more information visit the project home page: # https://github.com/msmhq/msm -# +# # Backs up all worlds for all servers at 2 minutes past 5 in the morning diff --git a/installers/arch.sh b/installers/arch.sh index 2f2b85c..54e822c 100755 --- a/installers/arch.sh +++ b/installers/arch.sh @@ -16,7 +16,7 @@ function enable_init() { install_log "Installing systemd service unit" sudo wget ${UPDATE_URL}/init/msm.service \ -O /etc/systemd/system/msm.service - + install_log "Enabling automatic startup and shutdown" sudo systemctl enable msm.service } @@ -28,7 +28,7 @@ function create_msm_directories() { sudo mkdir -p "$msm_dir" || install_error "Couldn't create directory '$msm_dir'" fi sudo chown -R $msm_user:$msm_user "$msm_dir" || install_error "Couldn't change file ownership for '$msm_dir'" - + if [ ! -d "/etc/init.d" ]; then sudo mkdir -p "/etc/init.d/" || install_error "Couldn't create directory '/etc/init.d'" fi