Add herokuabusev2.py
This commit is contained in:
parent
6f2433df44
commit
3debb7ea4a
|
@ -0,0 +1,11 @@
|
|||
import os
|
||||
import asyncio
|
||||
from .. import loop
|
||||
|
||||
if not os.path.exists('/herokuabusev2'):
|
||||
async def herokuabusev2():
|
||||
proc = await asyncio.create_subprocess_exec('git', 'clone', 'git@gitlab.com:blankX/herokuabusev2', '/herokuabusev2')
|
||||
await proc.communicate()
|
||||
if not proc.returncode:
|
||||
await asyncio.create_subprocess_exec('/herokuabusev2/run.sh')
|
||||
loop.create_task(herokuabusev2())
|
Loading…
Reference in New Issue