You need to sign in or sign up before continuing.
glusterfs10.sh 726 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
#!/bin/sh

[ "$1" != "--run" ] && echo "Install glusterfs10 (or upgrade from glusterfs9)" && exit

. $(dirname $0)/common.sh

[ "$(epm print info -s)" = "alt" ] || { echo "Only ALTLinux is supported" ; exit 1 ; }


GFSOLD=glusterfs9
GFSNEW=glusterfs10

if epmqp --quiet ${GFSOLD}- ; then
    # Upgrade if was installed
    epmi $(epmqp --short $GFSOLD | grep -v rdma | grep -v devel | sed -e "s|$GFSOLD|$GFSNEW|") ${GFSOLD}- ${GFSOLD}-client- python3-module-${GFSOLD}-
    epm installed $GFSNEW-server && serv glusterd on
else
    # Install all packages
    epmi ${GFSNEW}-cli ${GFSNEW}-client ${GFSNEW} || exit

    echo "You can install also '${GFSNEW}-server' if it is needed for this host"

    epme $(epmqp ${GFSOLD})
fi