Browse Source

Update code formatting in v-scripts

Kristan Kenney 6 years ago
parent
commit
79ea1309c7
3 changed files with 3 additions and 3 deletions
  1. 1 1
      bin/v-change-sys-service-config
  2. 1 1
      bin/v-restart-service
  3. 1 1
      bin/v-restart-web

+ 1 - 1
bin/v-change-sys-service-config

@@ -101,7 +101,7 @@ if [ "$update" = 'yes' ] && [ "$restart" != 'no' ]; then
         fi
     fi
 
-    $BIN/v-restart-service $service $restart >/dev/null 2>&1
+    $BIN/v-restart-service $service $restart > /dev/null 2>&1
 
     if [ $? -ne 0 ]; then
         for config in $dst; do

+ 1 - 1
bin/v-restart-service

@@ -29,7 +29,7 @@ check_args '1' "$#" 'SERVICE'
 #----------------------------------------------------------#
 
 if [ "$service" != "iptables" ]; then
-    systemctl restart $service >/dev/null 2>&1
+    systemctl restart $service > /dev/null 2>&1
     if [ $? -ne 0 ]; then
         check_result $E_RESTART "ERROR: Restart of $service failed."
         log_history "Restart of $service failed."

+ 1 - 1
bin/v-restart-web

@@ -49,8 +49,8 @@ if [ -z "$WEB_SYSTEM" ] || [ "$WEB_SYSTEM" = 'remote' ]; then
     exit
 fi
 
+systemctl restart $WEB_SYSTEM > /dev/null 2>&1
 
-systemctl restart $WEB_SYSTEM  >/dev/null 2>&1
 if [ $? -ne 0 ]; then
     send_email_report
     check_result $E_RESTART "$WEB_SYSTEM restart failed"