glusterfs7.sh 647 Bytes
Newer Older
1 2 3 4
#!/bin/sh

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

5 6
. $(dirname $0)/common.sh

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

if epmqp --quiet glusterfs6- ; then
    # Upgrade if was installed
    epmi $(epmqp --short glusterfs6 | sed -e "s|fs6|fs7|") glusterfs6- glusterfs6-client- python3-module-glusterfs6-
12
    epm installed glusterfs7-server && serv glusterd on
13 14
else
    # Install all packages
15
    epmi glusterfs7-client glusterfs7 || exit
16

17
    echo "You can install also 'glusterfs7-server' if it is needed for this host"
18 19 20

    epme $(epmqp glusterfs6)
fi