File tree Expand file tree Collapse file tree 3 files changed +12
-12
lines changed
Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -21,14 +21,14 @@ MSM="${MSM_SCRIPT:-/etc/init.d/msm}"
2121
2222_msm() {
2323 source "$MSM"
24-
24+
2525 local base current options
2626 COMPREPLY=()
27-
27+
2828 current="${COMP_WORDS[$COMP_CWORD]}"
2929
3030 manager_property SERVER_STORAGE_PATH
31-
31+
3232 if [[ $COMP_CWORD == 1 ]]; then
3333 if [ -d "$SETTINGS_SERVER_STORAGE_PATH" ]; then
3434 local servers="$(ls -1 "$SETTINGS_SERVER_STORAGE_PATH")"
@@ -80,7 +80,7 @@ _msm() {
8080 server_get_id "${COMP_WORDS[1]}"
8181 local sid="$RETURN"
8282 fi
83-
83+
8484
8585 local server_path="$SETTINGS_SERVER_STORAGE_PATH/${COMP_WORDS[1]}"
8686 if [[ "${COMP_WORDS[1]}" == "all" ]] || [ -e "$server_path" ]; then
@@ -132,7 +132,7 @@ _msm() {
132132 if [[ $COMP_CWORD == 3 && -d "$SETTINGS_JAR_STORAGE_PATH" ]]; then
133133 options="$(ls -1 "$SETTINGS_JAR_STORAGE_PATH")"
134134 fi
135-
135+
136136 if [[ $COMP_CWORD == 4 && -d "$SETTINGS_JAR_STORAGE_PATH/${COMP_WORDS[3]}" ]]; then
137137 options="$(find "$SETTINGS_JAR_STORAGE_PATH/${COMP_WORDS[3]}" -type f -name "*.jar" -exec basename {} \;)"
138138 fi
@@ -241,13 +241,13 @@ _msm() {
241241 fi
242242 ;;
243243 esac
244-
244+
245245 fi
246246 fi
247247 ;;
248248 esac
249249 fi
250-
250+
251251 COMPREPLY=( $(compgen -W "${options}" -- ${current}) )
252252 return 0
253253}
Original file line number Diff line number Diff line change 11#
22# Minecraft Server Manager Cron
3- #
3+ #
44# Backs up worlds, rolls logs, moves worlds in RAM to disk,
55# starts crashed servers, and deletes old archives
6- #
6+ #
77# For more information visit the project home page:
88# https://github.com/msmhq/msm
9- #
9+ #
1010
1111
1212# Backs up all worlds for all servers at 2 minutes past 5 in the morning
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ function enable_init() {
1616 install_log " Installing systemd service unit"
1717 sudo wget ${UPDATE_URL} /init/msm.service \
1818 -O /etc/systemd/system/msm.service
19-
19+
2020 install_log " Enabling automatic startup and shutdown"
2121 sudo systemctl enable msm.service
2222}
@@ -28,7 +28,7 @@ function create_msm_directories() {
2828 sudo mkdir -p " $msm_dir " || install_error " Couldn't create directory '$msm_dir '"
2929 fi
3030 sudo chown -R $msm_user :$msm_user " $msm_dir " || install_error " Couldn't change file ownership for '$msm_dir '"
31-
31+
3232 if [ ! -d " /etc/init.d" ]; then
3333 sudo mkdir -p " /etc/init.d/" || install_error " Couldn't create directory '/etc/init.d'"
3434 fi
You can’t perform that action at this time.
0 commit comments