Compare commits

..

4 Commits

Author SHA1 Message Date
이수준 e9cc931753 ADD: Add error code test 2023-10-18 16:34:01 +09:00
이수준 50b007cb75 ADD: Add error code test 2023-10-18 16:33:15 +09:00
이수준 e0b44b8aff ADD: Add error code test 2023-10-18 16:10:38 +09:00
이수준 40365eb8e0 ADD: Add error code test 2023-10-18 16:10:00 +09:00
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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)