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

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

5
distro="$($DISTRVENDOR -d)" ; [ "$distro" = "ALTLinux" ] || [ "$distro" = "ALTServer" ] || { echo "Only ALTLinux is supported" ; exit 1 ; }
6 7 8 9

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

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

    epme $(epmqp glusterfs6)
fi