diff --git a/api/api.py b/api/api.py index beaf101..a667c5a 100644 --- a/api/api.py +++ b/api/api.py @@ -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")