Adding restart in upgrade hook

This commit is contained in:
Bilal Baqar 2016-03-13 21:18:03 -07:00
parent 838dfe00d2
commit aeafa92722
1 changed files with 4 additions and 0 deletions

View File

@ -103,6 +103,10 @@ def config_changed():
@hooks.hook('upgrade-charm')
def upgrade_charm():
load_iptables()
ensure_mtu()
ensure_files()
CONFIGS.write_all()
restart_pg()
@hooks.hook('stop')