diff options
author | Will Woods <wwoods@redhat.com> | 2009-03-04 16:43:17 -0500 |
---|---|---|
committer | Will Woods <wwoods@redhat.com> | 2009-03-04 16:43:17 -0500 |
commit | 2e318337e1c107c9b1f9091455d5a7e467c9e1e2 (patch) | |
tree | 8f40676c1765e2c0dd4143181a2886c072cbea44 /debuginfofs.init | |
parent | 11cb615300b52bbcecd4574ac2856c0e6daa796f (diff) | |
download | debuginfofs-2e318337e1c107c9b1f9091455d5a7e467c9e1e2.tar.gz debuginfofs-2e318337e1c107c9b1f9091455d5a7e467c9e1e2.tar.xz debuginfofs-2e318337e1c107c9b1f9091455d5a7e467c9e1e2.zip |
Switch to using davfs2 for webdav
Diffstat (limited to 'debuginfofs.init')
-rwxr-xr-x | debuginfofs.init | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/debuginfofs.init b/debuginfofs.init index 846d9db..88dbbd1 100755 --- a/debuginfofs.init +++ b/debuginfofs.init @@ -35,14 +35,14 @@ start() { [ ${NETWORKING} = "no" ] && exit 1 # Sanity check binary and configuration - [ -x /usr/bin/wdfs ] || exit 1 + [ -x /usr/sbin/mount.davfs ] || exit 1 [ -n "$BUILDID_URL" ] || exit 1 [ -n "$BUILDID_MOUNTPOINT" ] || exit 1 [ -d "$BUILDID_MOUNTPOINT" ] || mkdir -p "$BUILDID_MOUNTPOINT" echo -n $"Starting debuginfofs: " - wdfs "$BUILDID_URL" "$BUILDID_MOUNTPOINT" -o allow_other -o nonempty \ - -o intr $BUILDID_ARGS + mount -t davfs "$BUILDID_URL" "$BUILDID_MOUNTPOINT" \ + -o ro,conf=/etc/davfs2/debuginfo.conf $MOUNT_ARGS RETVAL=$? [ $RETVAL -eq 0 ] && touch /var/lock/subsys/debuginfofs @@ -53,7 +53,7 @@ start() { stop() { echo -n $"Stopping debuginfofs: " - fusermount -u "$BUILDID_MOUNTPOINT" + umount "$BUILDID_MOUNTPOINT" RETVAL=$? rm -f /var/lock/subsys/debuginfofs [ $RETVAL -eq 0 ] && success $"$prog shutdown" || failure $"$prog shutdown" |