Update remove script.

This commit is contained in:
s440054 2021-12-01 14:11:49 +01:00
parent 2df52fdea7
commit dcf6010b69
3 changed files with 8 additions and 4 deletions

Binary file not shown.

0
deploy.sh Normal file → Executable file
View File

View File

@ -13,10 +13,14 @@ def main():
db_server = client.servers.get_by_name(DB_SERVER_NAME) db_server = client.servers.get_by_name(DB_SERVER_NAME)
gitea_server = client.servers.get_by_name(GITEA_SERVER_NAME) gitea_server = client.servers.get_by_name(GITEA_SERVER_NAME)
ssh_key.delete() if ssh_key is not None:
vnet.delete() ssh_key.delete()
db_server.delete() if vnet is not None:
gitea_server.delete() vnet.delete()
if db_server is not None:
db_server.delete()
if gitea_server is not None:
gitea_server.delete()
if __name__ == "__main__": if __name__ == "__main__":