summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBilal Baqar <bbaqar@plumgrid.com>2016-03-13 21:18:03 -0700
committerBilal Baqar <bbaqar@plumgrid.com>2016-03-13 21:18:03 -0700
commitaeafa927221f63b935a9152d155fe075c7ec218e (patch)
tree636ee15974273d8cf0358e542883a3459b498985
parent838dfe00d2412dfadb9f3088a4bb5d9181c77a3f (diff)
Adding restart in upgrade hook
-rwxr-xr-xhooks/pg_gw_hooks.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/hooks/pg_gw_hooks.py b/hooks/pg_gw_hooks.py
index 5b37e89..97ea9c6 100755
--- a/hooks/pg_gw_hooks.py
+++ b/hooks/pg_gw_hooks.py
@@ -103,6 +103,10 @@ def config_changed():
103@hooks.hook('upgrade-charm') 103@hooks.hook('upgrade-charm')
104def upgrade_charm(): 104def upgrade_charm():
105 load_iptables() 105 load_iptables()
106 ensure_mtu()
107 ensure_files()
108 CONFIGS.write_all()
109 restart_pg()
106 110
107 111
108@hooks.hook('stop') 112@hooks.hook('stop')