Compare commits
4 Commits
py-err-ver
...
main
Author | SHA1 | Date |
---|---|---|
이수준 | e9cc931753 | |
이수준 | 50b007cb75 | |
이수준 | e0b44b8aff | |
이수준 | 40365eb8e0 |
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
sudo sed -i "s/appName/$1/g" /usr/local/sdt/app/$1/awx-perfermance.service
|
sudo 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
|
||||||
|
|
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