appstore-1panel/apps/mysql/8.4.2/scripts/upgrade.sh

9 lines
213 B
Bash
Raw Normal View History

2024-08-15 14:33:28 +08:00
#!/bin/bash
CONFIG_FILE="./conf/my.cnf"
if grep -q "skip-host-cache" "$CONFIG_FILE"; then
sed -i '/skip-host-cache/d' "$CONFIG_FILE"
else
echo "'skip-host-cache' does not exist in the configuration file."
fi