Commit b76d0ebb authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm prescription: include common.sh

parent 6c6e5ebf
......@@ -2,6 +2,8 @@
[ "$1" != "--run" ] && echo "Uninstall etersoft build of glibc" && exit
. $(dirname $0)/common.sh
[ "$(epm print info -s)" = "alt" ] || { echo "Only ALTLinux is supported" ; exit 1 ; }
epm downgrade glibc-core glibc-preinstall
......
......@@ -2,6 +2,8 @@
[ "$1" != "--run" ] && echo "Install glusterfs7 (or upgrade from glusterfs6)" && exit
. $(dirname $0)/common.sh
[ "$(epm print info -s)" = "alt" ] || { echo "Only ALTLinux is supported" ; exit 1 ; }
if epmqp --quiet glusterfs6- ; then
......
......@@ -2,6 +2,8 @@
[ "$1" != "--run" ] && echo "Install glusterfs8 (or upgrade from glusterfs7)" && exit
. $(dirname $0)/common.sh
[ "$(epm print info -s)" = "alt" ] || { echo "Only ALTLinux is supported" ; exit 1 ; }
GFSOLD=glusterfs7
......
......@@ -2,6 +2,8 @@
[ "$1" != "--run" ] && echo "Install glusterfs9 (or upgrade from glusterfs8)" && exit
. $(dirname $0)/common.sh
[ "$(epm print info -s)" = "alt" ] || { echo "Only ALTLinux is supported" ; exit 1 ; }
......
......@@ -2,6 +2,8 @@
[ "$1" != "--run" ] && echo "Fix missed 32 bit package modules on 64 bit system" && exit
. $(dirname $0)/common.sh
[ "$(epm print info -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
epm play i586-support
......
......@@ -2,6 +2,8 @@
[ "$1" != "--run" ] && echo "Remove all 32 bit packages from 64 bit system" && exit
. $(dirname $0)/common.sh
[ "$(epm print info -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
case "$(epm print info -s)" in
......
......@@ -2,6 +2,8 @@
[ "$1" != "--run" ] && echo "Add 32 bit support on 64 bit system" && exit
. $(dirname $0)/common.sh
[ "$(epm print info -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
......
......@@ -2,6 +2,8 @@
[ "$1" != "--run" ] && echo "Install php7 (or upgrade from php5)" && exit
. $(dirname $0)/common.sh
distrbase="$(epm print info -s)" ; [ "$distrbase" = "alt" ] || { echo "Only ALTLinux is supported as for now" ; exit 1 ; }
if epmqp --quiet php5- ; then
......
......@@ -2,6 +2,8 @@
[ "$1" != "--run" ] && echo "Install php8.1 (or upgrade from a previous version)" && exit
. $(dirname $0)/common.sh
distrbase="$(epm print info -s)" ; [ "$distrbase" = "alt" ] || { echo "Only ALTLinux is supported as for now" ; exit 1 ; }
if epmqp --quiet php7- ; then
......
......@@ -2,6 +2,8 @@
[ "$1" != "--run" ] && echo "Install php8.1 (or upgrade from a previous version)" && exit
. $(dirname $0)/common.sh
distrbase="$(epm print info -s)" ; [ "$distrbase" = "alt" ] || { echo "Only ALTLinux is supported as for now" ; exit 1 ; }
if epmqp --quiet php7- ; then
......
......@@ -2,6 +2,8 @@
[ "$1" != "--run" ] && echo "Install php8.2 (or upgrade from a previous version)" && exit
. $(dirname $0)/common.sh
distrbase="$(epm print info -s)" ; [ "$distrbase" = "alt" ] || { echo "Only ALTLinux is supported as for now" ; exit 1 ; }
# TODO: check for apache2-mod_php7
......
......@@ -2,6 +2,8 @@
[ "$1" != "--run" ] && echo "Remove all possible python2 packages" && exit
. $(dirname $0)/common.sh
[ "$(epm print info -s)" = "alt" ] || { echo "Only ALTLinux is supported" ; exit 1 ; }
PACKAGES="$(epm qp python-module)"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment