Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nurlan
eepm
Commits
62716241
Commit
62716241
authored
Jan 02, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm prescription php: add support for php8.0 and php8.1
parent
3071dc05
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
4 deletions
+22
-4
php8.0.sh
prescription.d/php8.0.sh
+4
-4
php8.1.sh
prescription.d/php8.1.sh
+18
-0
No files found.
prescription.d/php8.sh
→
prescription.d/php8.
0.
sh
View file @
62716241
#!/bin/sh
#!/bin/sh
[
"
$1
"
!=
"--run"
]
&&
echo
"Install php8 (or upgrade from php7)"
&&
exit
[
"
$1
"
!=
"--run"
]
&&
echo
"Install php8
.0
(or upgrade from php7)"
&&
exit
distro
=
"
$(
$DISTRVENDOR
-d
)
"
;
[
"
$distro
"
=
"ALTLinux"
]
||
[
"
$distro
"
=
"ALTServer"
]
||
{
echo
"Only ALTLinux is supported"
;
exit
1
;
}
distro
=
"
$(
$DISTRVENDOR
-d
)
"
;
[
"
$distro
"
=
"ALTLinux"
]
||
[
"
$distro
"
=
"ALTServer"
]
||
{
echo
"Only ALTLinux is supported"
;
exit
1
;
}
...
@@ -8,11 +8,11 @@ distro="$($DISTRVENDOR -d)" ; [ "$distro" = "ALTLinux" ] || [ "$distro" = "ALTSe
...
@@ -8,11 +8,11 @@ distro="$($DISTRVENDOR -d)" ; [ "$distro" = "ALTLinux" ] || [ "$distro" = "ALTSe
if
epmqp
--quiet
php7-
;
then
if
epmqp
--quiet
php7-
;
then
# Upgrade if was installed php7
# Upgrade if was installed php7
epmqp php7
--short
|
grep
-v
"rpm-build-php"
|
sed
-e
"s|php7-http||"
-e
"s|php7-xmlrpc||"
-e
"s|php7-krb5||"
-e
"s|php7-raphf||"
-e
"s|php7-propro||"
-e
"s|php7-memcache
$|
|"
-e
"s|php7-apcu_bc
$|
|"
-e
"s|php7-enchant||"
-e
"s|php7-pdo_sqlsrv
$|
|"
-e
"s|php7-sqlsrv
$|
|"
-e
"s|php7-geoip||"
-e
"s|php7|php8.1|"
| epmi
--auto
epmqp php7
--short
|
grep
-v
"rpm-build-php"
|
sed
-e
"s|php7-http||"
-e
"s|php7-xmlrpc||"
-e
"s|php7-krb5||"
-e
"s|php7-raphf||"
-e
"s|php7-propro||"
-e
"s|php7-memcache
$|
|"
-e
"s|php7-apcu_bc
$|
|"
-e
"s|php7-enchant||"
-e
"s|php7-pdo_sqlsrv
$|
|"
-e
"s|php7-sqlsrv
$|
|"
-e
"s|php7-geoip||"
-e
"s|php7|php8.
0.
1|"
| epmi
--auto
epme php7-libs
epme php7-libs
else
else
# Install all packages
# Install all packages
epmi php8
php8-mbstring php8-pdo php8-curl php8-fileinfo php8-dom php8-exif php8-pdo_mysql php8-mysqli php8-pcntl php8-openssl php8-mcrypt php8-gd2 php8-xmlreader php8-memcached php8-xsl php8-zip php8-redis php8
-opcache
epmi php8
.0 php8.0-mbstring php8.0-pdo php8.0-curl php8.0-fileinfo php8.0-dom php8.0-exif php8.0-pdo_mysql php8.0-mysqli php8.0-pcntl php8.0-openssl php8.0-mcrypt php8.0-gd2 php8.0-xmlreader php8.0-memcached php8.0-xsl php8.0-zip php8.0-redis php8.0
-opcache
#echo "Think twice about php8-imagick. See https://bugzilla.altlinux.org/show_bug.cgi?id=39033"
#echo "Think twice about php8
.0
-imagick. See https://bugzilla.altlinux.org/show_bug.cgi?id=39033"
fi
fi
prescription.d/php8.1.sh
0 → 100755
View file @
62716241
#!/bin/sh
[
"
$1
"
!=
"--run"
]
&&
echo
"Install php8.1 (or upgrade from php7)"
&&
exit
distro
=
"
$(
$DISTRVENDOR
-d
)
"
;
[
"
$distro
"
=
"ALTLinux"
]
||
[
"
$distro
"
=
"ALTServer"
]
||
{
echo
"Only ALTLinux is supported"
;
exit
1
;
}
# TODO: check for apache2-mod_php7
if
epmqp
--quiet
php7-
;
then
# Upgrade if was installed php7
epmqp php7
--short
|
grep
-v
"rpm-build-php"
|
sed
-e
"s|php7-http||"
-e
"s|php7-xmlrpc||"
-e
"s|php7-krb5||"
-e
"s|php7-raphf||"
-e
"s|php7-propro||"
-e
"s|php7-memcache
$|
|"
-e
"s|php7-apcu_bc
$|
|"
-e
"s|php7-enchant||"
-e
"s|php7-pdo_sqlsrv
$|
|"
-e
"s|php7-sqlsrv
$|
|"
-e
"s|php7-geoip||"
-e
"s|php7|php8.1.1|"
| epmi
--auto
epme php7-libs
else
# Install all packages
epmi php8.1 php8.1-mbstring php8.1-pdo php8.1-curl php8.1-fileinfo php8.1-dom php8.1-exif php8.1-pdo_mysql php8.1-mysqli php8.1-pcntl php8.1-openssl php8.1-mcrypt php8.1-gd2 php8.1-xmlreader php8.1-memcached php8.1-xsl php8.1-zip php8.1-redis php8.1-opcache
#echo "Think twice about php8.1-imagick. See https://bugzilla.altlinux.org/show_bug.cgi?id=39033"
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment