Unverified Commit 6676b2fd authored by MegaS0ra's avatar MegaS0ra Committed by GitHub
Browse files

Update README.md

parent 6198fb66
......@@ -8,7 +8,7 @@ Requirements on slave server :
Requirements on master server :
- Allow SQL connection from slave (for Plesk)
- Allow SSH connection from slave (for DirectAdmin)
- Allow SSH/SQL connection from slave (for DirectAdmin)
For Plesk, on the master server, add a SQL user, which will only be able to show the domains :
````sql
......@@ -47,6 +47,8 @@ Execute the script with the IP of the master server as argument :
````
At each execution, the script will check if there are new domains (or removed domains) on the specified host, in comparison to the actual slaves zones, and add/remove these domains.
--
If the script is executed without any argument, it will do the check for the masters already added.
This script does the job only when executed, so you may want to setup a cron job to execute it.
......@@ -58,6 +60,13 @@ while IFS= read -r i ; do
done < IPlist.txt
````
--
If the script is executed with the argument -d, it allows to "move" a domain from one master to another :
````
./slave-retrieve.sh -d domain.tld IP1.IP1.IP1.IP1 IP2.IP2.IP2.IP2
````
Tested and created on CentOS 7.
--
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment