ece0a3e936
Change-Id: Id5fd48b8149d3934e4854366e59475f37624ec24
15 lines
379 B
Bash
Executable File
15 lines
379 B
Bash
Executable File
#!/bin/bash
|
|
/opt/compass/bin/manage_db.py checkdb
|
|
if [[ "$?" == "0" ]]; then
|
|
/opt/compass/bin/manage_db.py clean_clusters
|
|
fi
|
|
/opt/compass/bin/manage_db.py createdb
|
|
/opt/compass/bin/manage_db.py sync_switch_configs
|
|
/opt/compass/bin/manage_db.py sync_from_installers
|
|
service httpd restart
|
|
service rsyslog restart
|
|
service redis restart
|
|
redis-cli flushall
|
|
service compassd restart
|
|
|