#!/bin/sh["$1"!="--run"]&&echo"Install glusterfs9 (or upgrade from glusterfs8)"&&exit["$($DISTRVENDOR-d)"!="ALTLinux"]&&echo"Only ALTLinux is supported"&&exit 1GFSOLD=glusterfs8GFSNEW=glusterfs9if epmqp --quiet${GFSOLD}- ;then# Upgrade if was installed
epm installed $GFSNEW-server&& serv glusterd onelse# Install all packages epmi ${GFSNEW}-cli${GFSNEW}-client${GFSNEW}echo"You can install also '${GFSNEW}-server' if it is needed for this host" epme $(epmqp ${GFSOLD})fi