Refactored config cleanup

pull/7/head
Rui Carmo 2016-04-25 10:32:49 +01:00
rodzic ff52420f35
commit 18c711e84b
1 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -528,8 +528,11 @@ def destroy_app(app):
for f in g:
echo("Removing file '%s'" % f, fg='yellow')
os.remove(f)
echo("Removing file '%s.conf'" % join(NGINX_ROOT,app), fg='yellow')
os.remove(join(NGINX_ROOT, "%s.conf" % app))
nginx = join(NGINX_ROOT, "%s.conf" % app)
if exists(nginx):
echo("Removing file '%s'" % nginx, fg='yellow')
os.remove(nginx)
@piku.command("logs")