Fixes in updates

This commit is contained in:
absurdo 2023-11-26 01:36:46 +01:00
parent 929a13eb88
commit 9efdb38e0e
2 changed files with 8 additions and 4 deletions

View file

@ -1,4 +1,4 @@
#!/opt/pythonenv/bin/python3 -u #!/usr/bin/python3 -u
import sys import sys
import subprocess import subprocess

View file

@ -46,10 +46,14 @@ if call("sudo /opt/certbot/bin/pip install --upgrade certbot", shell=True) > 0:
print('Error, cannot upgrade certbot...') print('Error, cannot upgrade certbot...')
exit(1) exit(1)
print('Upgrading Pastafari utils...')
print('Upgrading Composer...') print('Upgrading Composer...')
if call("sudo /usr/local/bin/composer self-update", shell=True) > 0: if call("sudo /usr/local/bin/composer self-update", shell=True) > 0:
print('Error, cannot upgrade composer...') print('Error, cannot upgrade composer...')
exit(1) exit(1)
print('Upgrading Pastafari utils...')
if call("cd ./leviathanutils && git pull && composer update", shell=True) > 0:
print('Error, cannot upgrade Leviathanutils...')
exit(1)