From 7506a3c4540585dcd26df4d071c36a5b383d83eb Mon Sep 17 00:00:00 2001 From: age Date: Mon, 14 Jan 2008 22:14:50 +0000 Subject: [PATCH] update...dir works fine now --- event-scripts/apache2_dav | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/event-scripts/apache2_dav b/event-scripts/apache2_dav index da4e121..b9385d4 100755 --- a/event-scripts/apache2_dav +++ b/event-scripts/apache2_dav @@ -71,8 +71,8 @@ update_include_conf_dir() # if a webdav alias is given but no corresponding mount dir exists # then remove the includefile find "$APACHE_CONF_DIR" -type f -name "*.conf" | while read fname - do mdir=$(head -1 "$fname" | cut -f 4 -d '"') - test ! -d "$mdir" && rm "$fname" + do mdir=$(head -1 "$fname" | cut -f 4 -d '"') + test ! -d "$mdir" && rm "$fname" done } @@ -96,13 +96,13 @@ case "$event" in vol_name="$3" mountdir="$5" echo "$APACHE_SHARE_TEMPLATE" | sed s\#_SHARE_DIR_\#"$mountdir"\#g | sed s\#_VOLUME_NAME_\#"$vol_name"\#g > ${APACHE_CONF_DIR}/${vol_name}.conf - #update_include_conf_dir + update_include_conf_dir send_reload_command ;; preumount ) vol_name="$3" rm "$APACHE_CONF_DIR/${vol_name}.conf" || true - #update_include_conf_dir + update_include_conf_dir send_reload_command ;; shutdown | bootup )