ソースを参照

proper retun codes

Serghey Rodin 12 年 前
コミット
d02de6c91a
1 ファイル変更9 行追加9 行削除
  1. 9 9
      install/vst-install.sh

+ 9 - 9
install/vst-install.sh

@@ -481,7 +481,7 @@ chkconfig httpd on
 service httpd start
 service httpd start
 if [ "$?" -ne 0 ]; then
 if [ "$?" -ne 0 ]; then
     echo "Error: httpd start failed"
     echo "Error: httpd start failed"
-    exit
+    exit 1
 fi
 fi
 
 
 # Nginx configuration
 # Nginx configuration
@@ -493,7 +493,7 @@ chkconfig nginx on
 service nginx start
 service nginx start
 if [ "$?" -ne 0 ]; then
 if [ "$?" -ne 0 ]; then
     echo "Error: nginx start failed"
     echo "Error: nginx start failed"
-    exit
+    exit 1
 fi
 fi
 
 
 # Vsftpd configuration
 # Vsftpd configuration
@@ -502,7 +502,7 @@ chkconfig vsftpd on
 service vsftpd start
 service vsftpd start
 if [ "$?" -ne 0 ]; then
 if [ "$?" -ne 0 ]; then
     echo "Error: vsftpd start failed"
     echo "Error: vsftpd start failed"
-    exit
+    exit 1
 fi
 fi
 
 
 # MySQL configuration
 # MySQL configuration
@@ -546,7 +546,7 @@ chkconfig named on
 service named start
 service named start
 if [ "$?" -ne 0 ]; then
 if [ "$?" -ne 0 ]; then
     echo "Error: named start failed"
     echo "Error: named start failed"
-    exit
+    exit 1
 fi
 fi
 
 
 # Exim
 # Exim
@@ -576,7 +576,7 @@ chkconfig exim on
 service exim start
 service exim start
 if [ "$?" -ne 0 ]; then
 if [ "$?" -ne 0 ]; then
     echo "Error: exim start failed"
     echo "Error: exim start failed"
-    exit
+    exit 1
 fi
 fi
 
 
 # Dovecot configuration
 # Dovecot configuration
@@ -595,7 +595,7 @@ chkconfig dovecot on
 service dovecot start
 service dovecot start
 if [ "$?" -ne 0 ]; then
 if [ "$?" -ne 0 ]; then
     echo "Error: dovecot start failed"
     echo "Error: dovecot start failed"
-    exit
+    exit 1
 fi
 fi
 
 
 # ClamAV configuration
 # ClamAV configuration
@@ -609,7 +609,7 @@ if [ "$srv_type" = 'medium' ] ||  [ "$srv_type" = 'large' ]; then
     service clamd start
     service clamd start
     if [ "$?" -ne 0 ]; then
     if [ "$?" -ne 0 ]; then
         echo "Error: clamd start failed"
         echo "Error: clamd start failed"
-    exit
+    exit 1
 fi
 fi
 
 
 fi
 fi
@@ -620,7 +620,7 @@ if [ "$srv_type" = 'medium' ] ||  [ "$srv_type" = 'large' ]; then
     service spamassassin start
     service spamassassin start
     if [ "$?" -ne 0 ]; then
     if [ "$?" -ne 0 ]; then
         echo "Error: spamassassin start failed"
         echo "Error: spamassassin start failed"
-    exit
+    exit 1
 fi
 fi
 
 
 fi
 fi
@@ -786,7 +786,7 @@ chkconfig vesta on
 service vesta start
 service vesta start
 if [ "$?" -ne 0 ]; then
 if [ "$?" -ne 0 ]; then
     echo "Error: vesta start failed"
     echo "Error: vesta start failed"
-    exit
+    exit 1
 fi
 fi
 
 
 # Send notification to vestacp.com
 # Send notification to vestacp.com