mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2024-11-15 21:31:55 +08:00
9 lines
213 B
Bash
9 lines
213 B
Bash
|
#!/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
|