mirror of
https://github.com/itiligent/Easy-Guacamole-Installer.git
synced 2025-12-13 18:02:32 +00:00
Apply tzinfo before restarting MySQL service (#13)
This commit is contained in:
parent
f5fc746b4c
commit
35e2af54f7
1 changed files with 15 additions and 15 deletions
|
|
@ -344,21 +344,6 @@ echo
|
|||
# Set MySQL password
|
||||
export MYSQL_PWD=${MYSQL_ROOT_PWD}
|
||||
|
||||
# Restart MySQL service
|
||||
if [ "${INSTALL_MYSQL}" = true ]; then
|
||||
echo -e "${GREY}Restarting MySQL service & enable at boot..."
|
||||
# Set MySQl to start at boot
|
||||
systemctl enable mysql
|
||||
systemctl restart mysql
|
||||
if [ $? -ne 0 ]; then
|
||||
echo -e "${LRED}Failed${GREY}" 1>&2
|
||||
exit 1
|
||||
else
|
||||
echo -e "${LGREEN}OK${GREY}"
|
||||
echo
|
||||
fi
|
||||
fi
|
||||
|
||||
# Default locations of MySQL config files
|
||||
for x in /etc/mysql/mariadb.conf.d/50-server.cnf \
|
||||
/etc/mysql/mysql.conf.d/mysqld.cnf \
|
||||
|
|
@ -401,6 +386,21 @@ else
|
|||
echo
|
||||
fi
|
||||
|
||||
# Restart MySQL service
|
||||
if [ "${INSTALL_MYSQL}" = true ]; then
|
||||
echo -e "${GREY}Restarting MySQL service & enable at boot..."
|
||||
# Set MySQl to start at boot
|
||||
systemctl enable mysql
|
||||
systemctl restart mysql
|
||||
if [ $? -ne 0 ]; then
|
||||
echo -e "${LRED}Failed${GREY}" 1>&2
|
||||
exit 1
|
||||
else
|
||||
echo -e "${LGREEN}OK${GREY}"
|
||||
echo
|
||||
fi
|
||||
fi
|
||||
|
||||
# Create ${GUAC_DB} and grant ${GUAC_USER} permissions to it
|
||||
# SQL code
|
||||
GUAC_USERHost="localhost"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue