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,9 +13,13 @@ def main():
db_server = client.servers.get_by_name(DB_SERVER_NAME)
gitea_server = client.servers.get_by_name(GITEA_SERVER_NAME)
if ssh_key is not None:
ssh_key.delete()
if vnet is not None:
vnet.delete()
if db_server is not None:
db_server.delete()
if gitea_server is not None:
gitea_server.delete()