X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage3%2Fcis-postinstall;h=e76a0a7739315961119bc4106e32b50c4cd41d30;hb=425bbc4fed1d0106b78befe474328fb9f5a15334;hp=70efd792999e5f523ba24e7e1ce602f02cde351a;hpb=16cc35ba4890382ee9368a176e4f5a7fa773b7a6;p=hvlinux.git diff --git a/stage3/cis-postinstall b/stage3/cis-postinstall index 70efd79..e76a0a7 100755 --- a/stage3/cis-postinstall +++ b/stage3/cis-postinstall @@ -1,4 +1,6 @@ #!/bin/sh +set -o errexit + # First argument of this script is the package name. # Reading system configuration informations, functions and package versions. @@ -27,7 +29,6 @@ if [ "x${INST_TYPE}" = "xserver" -o "x${INST_TYPE}" = "xltsp-server" ]; then if [ "${SET_MYSQL_ROOT_PASS}" = "y" ]; then # Further configuration requires that the MySQL server be running: mysqld_safe --user=mysql 2>&1 >/dev/null & - evaluate_retval PASS_MATCH="no" @@ -44,12 +45,12 @@ if [ "x${INST_TYPE}" = "xserver" -o "x${INST_TYPE}" = "xltsp-server" ]; then fi done - mysqladmin -u root password ${PASS1} || exit 1 + mysqladmin -u root password ${PASS1} echo "MySQL root password set." echo "Shutting down MySQL server:" # Configuration of the server is now finished. Shuting down the server. - mysqladmin -p shutdown || exit 1 + mysqladmin -p shutdown fi ######################################### @@ -70,7 +71,7 @@ if [ "x${INST_TYPE}" = "xserver" -o "x${INST_TYPE}" = "xltsp-server" ]; then done if [ "${USE_SSL}" = "y" ]; then - /etc/apache/generate-ssl-certs || exit 1 + /etc/apache/generate-ssl-certs fi ######################################### @@ -91,10 +92,9 @@ if [ "x${INST_TYPE}" = "xserver" -o "x${INST_TYPE}" = "xltsp-server" ]; then done if [ "${USE_SSL}" = "y" ]; then - /etc/mail/imap-ssl-certs || exit 1 + /etc/mail/imap-ssl-certs fi fi -# Return last error exit $?