diff options
author | Kaleb S. KEITHLEY <kkeithle@redhat.com> | 2017-02-01 07:50:17 -0500 |
---|---|---|
committer | Kaleb KEITHLEY <kkeithle@redhat.com> | 2017-03-21 13:14:30 -0400 |
commit | 0cf2963f12a8b540a7042605d8c79f638fdf6cee (patch) | |
tree | b8c84847c2577a0f8ffc5b3d442316d6da5794f4 /extras/ganesha/scripts/create-export-ganesha.sh | |
parent | 843e1b04b554ab887ec656ae7b468bb93ee4e2f7 (diff) |
packaging: (ganesha) remove glusterfs-ganesha subpackage and related files)
Indiana Jones and the Temple of Ganesha HA, part two.
remove glsuterfs-ganesha subpackage, superceded by storhaug
Change-Id: I42a1fc59159add108d77080b9b130696216aa76d
BUG: 1418417
Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
Reviewed-on: https://review.gluster.org/16506
Smoke: Gluster Build System <jenkins@build.gluster.org>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: jiffin tony Thottan <jthottan@redhat.com>
Diffstat (limited to 'extras/ganesha/scripts/create-export-ganesha.sh')
-rwxr-xr-x | extras/ganesha/scripts/create-export-ganesha.sh | 91 |
1 files changed, 0 insertions, 91 deletions
diff --git a/extras/ganesha/scripts/create-export-ganesha.sh b/extras/ganesha/scripts/create-export-ganesha.sh deleted file mode 100755 index 1ffba427457..00000000000 --- a/extras/ganesha/scripts/create-export-ganesha.sh +++ /dev/null @@ -1,91 +0,0 @@ -#!/bin/bash - -#This script is called by glusterd when the user -#tries to export a volume via NFS-Ganesha. -#An export file specific to a volume -#is created in GANESHA_DIR/exports. - -# Try loading the config from any of the distro -# specific configuration locations -if [ -f /etc/sysconfig/ganesha ] - then - . /etc/sysconfig/ganesha -fi -if [ -f /etc/conf.d/ganesha ] - then - . /etc/conf.d/ganesha -fi -if [ -f /etc/default/ganesha ] - then - . /etc/default/ganesha -fi - -GANESHA_DIR=${1%/} -OPTION=$2 -VOL=$3 -CONF=$GANESHA_DIR"/ganesha.conf" -declare -i EXPORT_ID - -function check_cmd_status() -{ - if [ "$1" != "0" ] - then - rm -rf $GANESHA_DIR/exports/export.$VOL.conf - sed -i /$VOL.conf/d $CONF - exit 1 - fi -} - - -if [ ! -d "$GANESHA_DIR/exports" ]; - then - mkdir $GANESHA_DIR/exports - check_cmd_status `echo $?` -fi - -function write_conf() -{ -echo -e "# WARNING : Using Gluster CLI will overwrite manual -# changes made to this file. To avoid it, edit the -# file and run ganesha-ha.sh --refresh-config." - -echo "EXPORT{" -echo " Export_Id = 2;" -echo " Path = \"/$VOL\";" -echo " FSAL {" -echo " name = "GLUSTER";" -echo " hostname=\"localhost\";" -echo " volume=\"$VOL\";" -echo " }" -echo " Access_type = RW;" -echo " Disable_ACL = true;" -echo ' Squash="No_root_squash";' -echo " Pseudo=\"/$VOL\";" -echo ' Protocols = "3", "4" ;' -echo ' Transports = "UDP","TCP";' -echo ' SecType = "sys";' -echo " }" -} -if [ "$OPTION" = "on" ]; -then - if ! (cat $CONF | grep $VOL.conf\"$ ) - then - write_conf $@ > $GANESHA_DIR/exports/export.$VOL.conf - echo "%include \"$GANESHA_DIR/exports/export.$VOL.conf\"" >> $CONF - count=`ls -l $GANESHA_DIR/exports/*.conf | wc -l` - if [ "$count" = "1" ] ; then - EXPORT_ID=2 - else - EXPORT_ID=`cat $GANESHA_DIR/.export_added` - check_cmd_status `echo $?` - EXPORT_ID=EXPORT_ID+1 - sed -i s/Export_Id.*/"Export_Id= $EXPORT_ID ;"/ \ - $GANESHA_DIR/exports/export.$VOL.conf - check_cmd_status `echo $?` - fi - echo $EXPORT_ID > $GANESHA_DIR/.export_added - fi -else - rm -rf $GANESHA_DIR/exports/export.$VOL.conf - sed -i /$VOL.conf/d $CONF -fi |