Adding restart in upgrade hook
This commit is contained in:
parent
838dfe00d2
commit
aeafa92722
|
@ -103,6 +103,10 @@ def config_changed():
|
||||||
@hooks.hook('upgrade-charm')
|
@hooks.hook('upgrade-charm')
|
||||||
def upgrade_charm():
|
def upgrade_charm():
|
||||||
load_iptables()
|
load_iptables()
|
||||||
|
ensure_mtu()
|
||||||
|
ensure_files()
|
||||||
|
CONFIGS.write_all()
|
||||||
|
restart_pg()
|
||||||
|
|
||||||
|
|
||||||
@hooks.hook('stop')
|
@hooks.hook('stop')
|
||||||
|
|
Loading…
Reference in New Issue