#!/bin/sh
+set -o errexit
+
# First argument of this script is the package name.
# Reading system configuration informations, functions and package versions.
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"
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
#########################################
done
if [ "${USE_SSL}" = "y" ]; then
- /etc/apache/generate-ssl-certs || exit 1
+ /etc/apache/generate-ssl-certs
fi
#########################################
done
if [ "${USE_SSL}" = "y" ]; then
- /etc/mail/imap-ssl-certs || exit 1
+ /etc/mail/imap-ssl-certs
fi
fi
-# Return last error
exit $?