ADD: Add error code test
This commit is contained in:
parent
4cfb891eba
commit
40365eb8e0
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
sudo sed -i "s/appName/$1/g" /usr/local/sdt/app/$1/awx-perfermance.service
|
sssudo sed -i "s/appName/$1/g" /usr/local/sdt/app/$1/awx-perfermance.service
|
||||||
sudo cp /usr/local/sdt/app/$1/awx-perfermance.service /etc/systemd/system/$1.service
|
sudo cp /usr/local/sdt/app/$1/awx-perfermance.service /etc/systemd/system/$1.service
|
||||||
sudo systemctl start $1
|
sudo systemctl start $1
|
||||||
sudo systemctl enable $1
|
sudo systemctl enable $1
|
||||||
|
|
2
main.py
2
main.py
|
@ -10,7 +10,7 @@ parser = argparse.ArgumentParser()
|
||||||
parser.add_argument('-config',help='')
|
parser.add_argument('-config',help='')
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
iwith open(f'/usr/local/sdt/app/{args.config}/config.json', encoding='UTF-8') as f:
|
with open(f'/usr/local/sdt/app/{args.config}/config.json', encoding='UTF-8') as f:
|
||||||
# with open(f'./config.json', encoding='UTF-8') as f:
|
# with open(f'./config.json', encoding='UTF-8') as f:
|
||||||
jsonData = json.load(f)
|
jsonData = json.load(f)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue