Added support for php, composer, and php utilities

This commit is contained in:
absurdo 2023-11-26 00:58:51 +01:00
parent def162c1c9
commit 929a13eb88
5 changed files with 91 additions and 5 deletions

View file

@ -36,3 +36,20 @@ elif linux_distro=='rocky' or linux_distro=='fedora' or linux_distro=='alma' or
print('Error, cannot upgrade server...')
exit(1)
# Need update certbot and leviathanutils.
print('Upgrading certbot...')
#/opt/certbot/bin/pip install --upgrade 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...')
print('Upgrading Composer...')
if call("sudo /usr/local/bin/composer self-update", shell=True) > 0:
print('Error, cannot upgrade composer...')
exit(1)