remove .site files (gen), uninstall remove folder at the end (linux) and run jobs when reloading local instances (UI)

This commit is contained in:
bunkerity
2021-08-18 12:07:11 +02:00
parent 2a0b84074a
commit 8a4eb3f2a3
3 changed files with 13 additions and 9 deletions

View File

@@ -53,7 +53,7 @@ if __name__ == "__main__" :
# Remove old files
files = glob.glob(args.output + "/*")
for file in files :
if file.endswith(".conf") and os.path.isfile(file) and not os.path.islink(file) :
if (file.endswith(".conf") or file.endswith(".env")) and os.path.isfile(file) and not os.path.islink(file) :
os.remove(file)
elif os.path.isdir(file) and not os.path.islink(file) :
shutil.rmtree(file, ignore_errors=False)