mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
14 lines
375 B
Bash
14 lines
375 B
Bash
#!/bin/bash
|
|
|
|
wget -O /etc/openpanel/mysql/user.cnf https://raw.githubusercontent.com/stefanpejcic/openpanel-configuration/refs/heads/main/mysql/user.cnf
|
|
|
|
for dir in /home/*; do
|
|
file_or_folder="$dir/custom.cnf"
|
|
user=$(basename "$dir")
|
|
|
|
if [[ -d "$file_or_folder" ]]; then
|
|
rm $file_or_folder
|
|
cp /etc/openpanel/mysql/user.cnf $file_or_folder
|
|
fi
|
|
done
|