Skip to content

Commit a215528

Browse files
committed
Science Commit 5.
1 parent f6ccb92 commit a215528

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
29295
1+
29895

scripts/web/post-clone.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,10 @@ if ! command -v mysql &>/dev/null; then
6565
echo "[*] Installing MySQL..."
6666
apt install -y -qq mysql-server 2>/dev/null || dnf install -y mysql-server 2>/dev/null || true
6767
systemctl enable mysql 2>/dev/null || systemctl enable mysqld 2>/dev/null
68-
systemctl start mysql 2>/dev/null || systemctl start mysqld 2>/dev/null
6968
fi
69+
# Always ensure MySQL is running (may be installed but stopped after reboot)
70+
echo "[*] Starting MySQL service..."
71+
systemctl start mysql 2>/dev/null || systemctl start mysqld 2>/dev/null || true
7072
echo "[OK] MySQL: $(mysql --version 2>/dev/null | head -1)"
7173

7274
# 3. Configure MySQL root for JDBC

0 commit comments

Comments
 (0)