diff --git a/scripts/system/ssh/change_ssh_port.py b/scripts/system/ssh/change_ssh_port.py index 3ee13c3..783e2a1 100644 --- a/scripts/system/ssh/change_ssh_port.py +++ b/scripts/system/ssh/change_ssh_port.py @@ -1,4 +1,4 @@ -#!/opt/pythonenv/bin/python3 -u +#!/usr/bin/python3 -u import sys import subprocess diff --git a/scripts/system/updates.py b/scripts/system/updates.py index fa31882..4f4c68c 100644 --- a/scripts/system/updates.py +++ b/scripts/system/updates.py @@ -44,12 +44,16 @@ print('Upgrading certbot...') if call("sudo /opt/certbot/bin/pip install --upgrade certbot", shell=True) > 0: print('Error, cannot upgrade certbot...') - exit(1) - -print('Upgrading Pastafari utils...') + exit(1) print('Upgrading Composer...') if call("sudo /usr/local/bin/composer self-update", shell=True) > 0: print('Error, cannot upgrade composer...') exit(1) + +print('Upgrading Pastafari utils...') + +if call("cd ./leviathanutils && git pull && composer update", shell=True) > 0: + print('Error, cannot upgrade Leviathanutils...') + exit(1)