From 9efdb38e0e165143227e0caffc0c7f00989ee4f5 Mon Sep 17 00:00:00 2001 From: absurdo Date: Sun, 26 Nov 2023 01:36:46 +0100 Subject: [PATCH] Fixes in updates --- scripts/system/ssh/change_ssh_port.py | 2 +- scripts/system/updates.py | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) 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)