Commit 0f6ecdc0 authored by Lorenz Steinert's avatar Lorenz Steinert

hook will backup ini_file

parent d3d4f928
......@@ -18,8 +18,10 @@ for i in config_default:
for j in config_default[i]:
try:
if j not in config[i]:
shutil.copyfile('./proto.ini', './proto.ini.bak')
shutil.copyfile('./proto.ini.default', './proto.ini')
raise SystemExit(0)
except:
shutil.copyfile('./proto.ini', './proto.ini.bak')
shutil.copyfile('./proto.ini.default', './proto.ini')
raise SystemExit(0)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment