Fixes in updates
This commit is contained in:
parent
929a13eb88
commit
9efdb38e0e
2 changed files with 8 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
#!/opt/pythonenv/bin/python3 -u
|
#!/usr/bin/python3 -u
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
|
||||||
|
|
@ -44,12 +44,16 @@ print('Upgrading certbot...')
|
||||||
|
|
||||||
if call("sudo /opt/certbot/bin/pip install --upgrade certbot", shell=True) > 0:
|
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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue