From 89b75f0147f1b39075a20310bd651f017f2ed9ed Mon Sep 17 00:00:00 2001 From: Matthieu Lamalle Date: Thu, 8 Jul 2021 14:37:33 +0200 Subject: [PATCH] update set_var module --- scripts/module/{set_var.py => set_var.zephir} | 5 +++++ 1 file changed, 5 insertions(+) rename scripts/module/{set_var.py => set_var.zephir} (91%) diff --git a/scripts/module/set_var.py b/scripts/module/set_var.zephir similarity index 91% rename from scripts/module/set_var.py rename to scripts/module/set_var.zephir index 0003721..ab14bdd 100644 --- a/scripts/module/set_var.py +++ b/scripts/module/set_var.zephir @@ -63,6 +63,11 @@ def main(): fh = open("/etc/eole/config.eol", 'w') fh.write(cjson.encode(store)) fh.close() + + if not save : + to_save = raw_input("Souhaitez vous sauvegarder la configuration sur Zephir ? (O/N) ") + if to_save == "O": + save = True if save: cmd="""/usr/share/zephir/scripts/zephir_client save_files""" output = os.popen(cmd)