mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
implemented scheduled restart
This commit is contained in:
parent
ca81632e82
commit
10f7097c48
46 changed files with 172 additions and 63 deletions
|
@ -96,7 +96,7 @@ for cluster_str in $hosts; do
|
|||
fi
|
||||
|
||||
# Clean source records
|
||||
$send_cmd v-delete-dns-domains-src $DNS_USER $HOSTNAME no
|
||||
$send_cmd v-delete-dns-domains-src $DNS_USER $HOSTNAME 'no'
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Error: $TYPE connection to $HOST failed (cleanup)"
|
||||
log_event "$E_CONNECT $EVENT"
|
||||
|
@ -104,7 +104,7 @@ for cluster_str in $hosts; do
|
|||
fi
|
||||
|
||||
# Rebuild dns zones
|
||||
$send_cmd v-rebuild-dns-domains $DNS_USER
|
||||
$send_cmd v-rebuild-dns-domains $DNS_USER 'scheduled'
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Error: $TYPE connection to $HOST failed (rebuild)"
|
||||
log_event "$E_CONNECT $EVENT"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue