15 lines
402 B
Plaintext
Executable File
15 lines
402 B
Plaintext
Executable File
jpsType: update
|
|
name: Balancer Rebuild
|
|
description: This script for balancer rebuild
|
|
id: wordpress-balancer-rebuild
|
|
|
|
onInstall:
|
|
- cmd[bl]: |-
|
|
[ -f /var/www/conf/hosts_list ] && rm -f /var/www/conf/hosts_list;
|
|
- forEach(i:nodes.cp):
|
|
cmd[bl]: echo '${@i.address}' >> /var/www/conf/hosts_list;
|
|
- cmd[bl]: |-
|
|
jem balancer clear;
|
|
jem balancer rebuildCommon;
|
|
user: root
|