update...dir works fine now
This commit is contained in:
parent
9f23dbddfd
commit
7506a3c454
|
@ -96,13 +96,13 @@ case "$event" in
|
||||||
vol_name="$3"
|
vol_name="$3"
|
||||||
mountdir="$5"
|
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
|
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
|
send_reload_command
|
||||||
;;
|
;;
|
||||||
preumount )
|
preumount )
|
||||||
vol_name="$3"
|
vol_name="$3"
|
||||||
rm "$APACHE_CONF_DIR/${vol_name}.conf" || true
|
rm "$APACHE_CONF_DIR/${vol_name}.conf" || true
|
||||||
#update_include_conf_dir
|
update_include_conf_dir
|
||||||
send_reload_command
|
send_reload_command
|
||||||
;;
|
;;
|
||||||
shutdown | bootup )
|
shutdown | bootup )
|
||||||
|
|
Loading…
Reference in a new issue