Fixes in phpo

This commit is contained in:
absurdo 2023-07-01 16:24:55 +02:00
parent c5a9654f8b
commit 71ad1d0fff

View file

@ -24,6 +24,23 @@ elif linux_distro=='debian' or linux_distro=='ubuntu':
print('Error, cannot install php...') print('Error, cannot install php...')
exit(1) exit(1)
elif linux_distro=='rocky' or linux_distro=='fedora': elif linux_distro=='rocky' or linux_distro=='fedora':
if call("sudo dnf install -y php php-gd php-mysqlnd php-fpm php-zip", shell=True) > 0:
print('Error, cannot install php...') if linux_distro=='rocky':
exit(1)
if call("sudo dnf install -y php php-gd php-mysqlnd php-fpm php-zip", shell=True) > 0:
print('Error, cannot install php...')
exit(1)
if linux_distro=='fedora':
# In fedora, install some extra packages for get modular php packages from remi.
fedora_version=distro.version()
if call("dnf -y install https://rpms.remirepo.net/fedora/remi-release-%s.rpm && dnf config-manager --set-enabled remi" % fedora_version, shell=True) > 0:
print('Error, cannot enable remi repo...')
exit(1)
if call("sudo dnf -y install php82 php82-php-gd php82-php-mysqlnd php82-php-imap php82-php-intl php82-php-fpm php82-php-process composer unzip", shell=True) > 0:
print('Error, cannot install php...')
exit(1)