Added simple tasks
This commit is contained in:
parent
0b509f74e5
commit
57b1064734
7 changed files with 160 additions and 3 deletions
|
|
@ -19,6 +19,7 @@ parser.add_argument('--url_stats', help='The url where pastafaristats notify the
|
|||
parser.add_argument('--user', help='The user for pastafari', required=True)
|
||||
parser.add_argument('--pub_key', help='The pub key used in pastafari user', required=True)
|
||||
parser.add_argument('--group', help='Server group', required=False)
|
||||
parser.add_argument('--path', help='A path used for save internal things for pastafari', required=True)
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
|
|
@ -98,9 +99,11 @@ if check_url.match(args.url_stats):
|
|||
|
||||
#su - $USER -s /bin/bash -c "composer --working-dir=$HOME/scripts require guzzlehttp/guzzle:~6.0"
|
||||
|
||||
#pt=Path('/home/'+args.user+'/pzoo/tasks')
|
||||
args.path=os.path.basename(args.path)
|
||||
|
||||
#pt.mkdir(mode=0o755, parents=True, exist_ok=True)
|
||||
pt=Path('/home/'+args.user+'/'+args.path+'/tasks')
|
||||
|
||||
pt.mkdir(mode=0o755, parents=True, exist_ok=True)
|
||||
|
||||
# Create scripts pzoo
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue