Browse Source

Adding restart in upgrade hook

Bilal Baqar 3 years ago
parent
commit
aeafa92722
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      hooks/pg_gw_hooks.py

+ 4
- 0
hooks/pg_gw_hooks.py View File

@@ -103,6 +103,10 @@ def config_changed():
103 103
 @hooks.hook('upgrade-charm')
104 104
 def upgrade_charm():
105 105
     load_iptables()
106
+    ensure_mtu()
107
+    ensure_files()
108
+    CONFIGS.write_all()
109
+    restart_pg()
106 110
 
107 111
 
108 112
 @hooks.hook('stop')

Loading…
Cancel
Save