mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
Create UPDATE.sh
This commit is contained in:
parent
c444018bc7
commit
d339ce62b8
13
version/1.2.1/UPDATE.sh
Normal file
13
version/1.2.1/UPDATE.sh
Normal file
@ -0,0 +1,13 @@
|
||||
#!/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
|
Loading…
Reference in New Issue
Block a user