summaryrefslogtreecommitdiffstats
path: root/extras/hook-scripts/set
diff options
context:
space:
mode:
Diffstat (limited to 'extras/hook-scripts/set')
-rwxr-xr-xextras/hook-scripts/set/post/S31ganesha-set.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/extras/hook-scripts/set/post/S31ganesha-set.sh b/extras/hook-scripts/set/post/S31ganesha-set.sh
index 0f45ef4cac3..4e7e7191cc2 100755
--- a/extras/hook-scripts/set/post/S31ganesha-set.sh
+++ b/extras/hook-scripts/set/post/S31ganesha-set.sh
@@ -5,7 +5,8 @@ VOL=
declare -i EXPORT_ID
GANESHA_DIR="/var/lib/glusterfs-ganesha"
CONF1="$GANESHA_DIR/nfs-ganesha.conf"
-LOG="/tmp/ganesha.log"
+GANESHA_LOG_DIR="/var/log/nfs-ganesha/"
+LOG="$GANESHA_LOG_DIR/ganesha.nfsd.log"
gnfs="enabled"
enable_ganesha=""
host_name="none"
@@ -227,6 +228,12 @@ function check_ganesha_dir()
mkdir $GANESHA_DIR/exports
check_cmd_status `echo $?`
fi
+ if [ ! -d "$GANESHA_LOG_DIR" ] ;
+ then
+ mkdir $GANESHA_LOG_DIR
+ check_cmd_status `echo $?`
+ fi
+
}