]> Frank Brehm's Git Trees - pixelpark/admin-tools.git/commitdiff
Output chenges
authorFrank Brehm <frank@brehm-online.com>
Fri, 23 Apr 2021 10:53:38 +0000 (12:53 +0200)
committerFrank Brehm <frank@brehm-online.com>
Fri, 23 Apr 2021 10:53:38 +0000 (12:53 +0200)
bin/update-minecraft-server-jar

index 85d9ba2840fdd747f35a7d51366bbf10d569ee98..3db3ecd75977f66ba2e248a03cbe692c5f3d7027 100755 (executable)
@@ -145,6 +145,7 @@ check_preferences() {
 #------------------------------------------------------------------------------
 detecting_cur_version() {
 
+    empty_line
     info "Trying to detect current version of Minecraft server."
 
     cd "${MC_BACKUP_DIR}"
@@ -169,6 +170,7 @@ detecting_cur_version() {
 #------------------------------------------------------------------------------
 get_upstream_info() {
 
+    empty_line
     info "Trying to get info about current upstream version."
 
     local upstream_manifest=$( curl -s "${VERSION_MANIFEST}" )
@@ -226,6 +228,7 @@ get_upstream_info() {
 #------------------------------------------------------------------------------
 do_download() {
 
+    empty_line
     info "Downloading upstream server.jar => '${CYAN}${TARGET_JAR}${NORMAL}' ..."
 
     if [[ -f "${TARGET_JAR}" ]] ; then
@@ -253,6 +256,7 @@ do_download() {
 #------------------------------------------------------------------------------
 check_sha1() {
 
+    empty_line
     info "Checking SHA1 sum integrety of '${CYAN}${TARGET_JAR}${NORMAL}' ..."
 
     if [[ ! -f "${TARGET_JAR}" ]] ; then
@@ -277,6 +281,7 @@ check_sha1() {
 #------------------------------------------------------------------------------
 fix_symlinks() {
 
+    empty_line
     info "Checking symlink in '${CYAN}${MC_BACKUP_DIR}${NORMAL}' ..."
     local symlink_was_set="n"
 
@@ -323,6 +328,9 @@ fix_symlinks() {
 #------------------------------------------------------------------------------
 restart_service() {
 
+    empty_line
+    info "Checking for services to restart ..."
+
     local -a services=()
     local service=
     local svc_status=
@@ -333,6 +341,7 @@ restart_service() {
     done
 
     if [[ "${#services[*]}" == 0 ]] ; then
+        empty_line
         info "No services found to restart."
         return
     fi