Skip to content

Commit d02de6c

Browse files
committed
proper retun codes
1 parent 3f5f796 commit d02de6c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

install/vst-install.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ chkconfig httpd on
481481
service httpd start
482482
if [ "$?" -ne 0 ]; then
483483
echo "Error: httpd start failed"
484-
exit
484+
exit 1
485485
fi
486486

487487
# Nginx configuration
@@ -493,7 +493,7 @@ chkconfig nginx on
493493
service nginx start
494494
if [ "$?" -ne 0 ]; then
495495
echo "Error: nginx start failed"
496-
exit
496+
exit 1
497497
fi
498498

499499
# Vsftpd configuration
@@ -502,7 +502,7 @@ chkconfig vsftpd on
502502
service vsftpd start
503503
if [ "$?" -ne 0 ]; then
504504
echo "Error: vsftpd start failed"
505-
exit
505+
exit 1
506506
fi
507507

508508
# MySQL configuration
@@ -546,7 +546,7 @@ chkconfig named on
546546
service named start
547547
if [ "$?" -ne 0 ]; then
548548
echo "Error: named start failed"
549-
exit
549+
exit 1
550550
fi
551551

552552
# Exim
@@ -576,7 +576,7 @@ chkconfig exim on
576576
service exim start
577577
if [ "$?" -ne 0 ]; then
578578
echo "Error: exim start failed"
579-
exit
579+
exit 1
580580
fi
581581

582582
# Dovecot configuration
@@ -595,7 +595,7 @@ chkconfig dovecot on
595595
service dovecot start
596596
if [ "$?" -ne 0 ]; then
597597
echo "Error: dovecot start failed"
598-
exit
598+
exit 1
599599
fi
600600

601601
# ClamAV configuration
@@ -609,7 +609,7 @@ if [ "$srv_type" = 'medium' ] || [ "$srv_type" = 'large' ]; then
609609
service clamd start
610610
if [ "$?" -ne 0 ]; then
611611
echo "Error: clamd start failed"
612-
exit
612+
exit 1
613613
fi
614614

615615
fi
@@ -620,7 +620,7 @@ if [ "$srv_type" = 'medium' ] || [ "$srv_type" = 'large' ]; then
620620
service spamassassin start
621621
if [ "$?" -ne 0 ]; then
622622
echo "Error: spamassassin start failed"
623-
exit
623+
exit 1
624624
fi
625625

626626
fi
@@ -786,7 +786,7 @@ chkconfig vesta on
786786
service vesta start
787787
if [ "$?" -ne 0 ]; then
788788
echo "Error: vesta start failed"
789-
exit
789+
exit 1
790790
fi
791791

792792
# Send notification to vestacp.com

0 commit comments

Comments
 (0)