Skip to content

Commit

Permalink
Update api.py
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonmcfadd committed Nov 7, 2023
1 parent 7383b10 commit 3b34d51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ async def production_upgrade(secret: str, token: str = Depends(get_current_usern
try:
if str(secret) == str(deploy_secret):
# output = subprocess.call('production-upgrade', shell=True, env=dict(ENV='/home/brandon_brandonmcfadden_com/.bash_aliases'))
cmd = f"sudo {main_file_path}/production-upgrade.sh"
cmd = f"{main_file_path}/production-upgrade.sh"
command = run(cmd, shell=True, stdout=PIPE)
output = [i for i in command.stdout.decode().split('\n') if i]
print("Script Ran Successfully")
Expand Down

0 comments on commit 3b34d51

Please sign in to comment.