Added delete flask webapp
This commit is contained in:
parent
90990ab1c0
commit
cde921f940
1 changed files with 4 additions and 0 deletions
|
|
@ -35,6 +35,10 @@ name_service=os.path.basename(home_user[:-1]).strip()
|
|||
|
||||
domain=os.path.basename(home_user[:-1].replace(name_service, '')[:-1]).strip()
|
||||
|
||||
if name_service=='htdocs':
|
||||
name_service='flask'
|
||||
home_user=home_user.replace('flask', 'htdocs')
|
||||
|
||||
#print(domain)
|
||||
|
||||
if subprocess.call('sudo systemctl stop %s-%s.service && sudo rm /etc/systemd/system/%s-%s.service' % (domain, name_service, domain, name_service), shell=True) > 0:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue