From: Frank Brehm Date: Fri, 23 Apr 2021 10:58:39 +0000 (+0200) Subject: Bugfixing X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=a7d736171ed2c92f7a8d6ccc8f2d1999abf648b1;p=pixelpark%2Fadmin-tools.git Bugfixing --- diff --git a/bin/update-minecraft-server-jar b/bin/update-minecraft-server-jar index 225f134..c5cb65c 100755 --- a/bin/update-minecraft-server-jar +++ b/bin/update-minecraft-server-jar @@ -340,7 +340,6 @@ restart_service() { debug "Found service ${CYAN}${service}${NORMAL}'." services+=( "${service}" ) done - debug "Found services: ${CYAN}${services[*]}${NORMAL}'." if [[ "${#services[*]}" == 0 ]] ; then empty_line @@ -353,7 +352,7 @@ restart_service() { fi empty_line - for service in "${ervices[@]}" ; do + for service in "${services[@]}" ; do info "Restarting '${CYAN}${service}${NORMAL}' ..." if [[ "${SIMULATE}" != "y" ]] ; then systemctl restart "${service}" @@ -366,7 +365,7 @@ restart_service() { sleep 15 fi - for service in "${ervices[@]}" ; do + for service in "${services[@]}" ; do empty_line info "Status of '${CYAN}${service}${NORMAL}':" svc_status=$( systemctl status "${service}" 2>&1 )