File tree Expand file tree Collapse file tree 3 files changed +19
-1
lines changed
Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 601601mpass=$( gen_pass)
602602wget $CHOST /$VERSION /my.cnf -O /etc/mysql/my.cnf
603603mysql_install_db
604- update-rc.d mysql defaults
604+ if [ " $release " != ' 14.04' ]; then
605+ update-rc.d mysql defaults
606+ fi
605607service mysql stop > /dev/null 2>&1
606608service mysql start
607609if [ " $? " -ne 0 ]; then
Original file line number Diff line number Diff line change @@ -15,4 +15,9 @@ if [ -x "/usr/local/vesta/upd/fix_vesta_ssl_permissions.sh" ]; then
1515 /usr/local/vesta/upd/fix_vesta_ssl_permissions.sh
1616fi
1717
18+ # Run MySQL autostart fixed
19+ if [ -x " /usr/local/vesta/upd/fix_mysql_startup.sh" ]; then
20+ /usr/local/vesta/upd/fix_mysql_startup.sh
21+ fi
22+
1823exit 0
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # Fix MySQL autostart for Ubuntu 14.04
4+ if [ -e " /etc/issue" ]; then
5+ release=$( head -n 1 /etc/issue | cut -f 2 -d ' ' )
6+ if [ " $release " = ' 14.04' ]; then
7+ update-rc.d mysql disable
8+ fi
9+ fi
10+
11+ exit
You can’t perform that action at this time.
0 commit comments