This allows arguments that take things like paths
(e.g. -l dir=/somewhere) to be handled properly.

Signed-off-by: Alexander Guy <alexan...@andern.org>
---
 debian/sheepdog.postinst | 1 +
 1 file changed, 1 insertion(+)

diff --git a/debian/sheepdog.postinst b/debian/sheepdog.postinst
index bc72f06..760ee67 100644
--- a/debian/sheepdog.postinst
+++ b/debian/sheepdog.postinst
@@ -19,6 +19,7 @@ if [ "$1" = "configure" ] ; then
                sed -i -e "s/^[ \t]*START=.*/START=\"$SERVICE_START\"/g" 
/etc/default/sheepdog
 
                db_get sheepdog/daemon_args
+               RET="$(echo $RET | sed -e 's:/:\\/:g')"
                sed -i -e "s/^[ \t]*DAEMON_ARGS=.*/DAEMON_ARGS=\"$RET\"/g" 
/etc/default/sheepdog
        fi
        db_stop || true
-- 
2.1.4

-- 
sheepdog mailing list
sheepdog@lists.wpkg.org
https://lists.wpkg.org/mailman/listinfo/sheepdog

Reply via email to