releasing version 0.6.0~rc1-8
[debian/iodine.git] / debian / config
index 36e43452b69e985305724b8bc310db95bd40d3d0..c7f05444da9fbdd5ac31e064055e9273a15ceca5 100644 (file)
@@ -4,14 +4,20 @@ set -e
 
 . /usr/share/debconf/confmodule
 
+getvalue() {
+       awk '/^'"$1"'=/ {sub("^'"$1"'=\"", ""); sub("\"$", ""); value=$0;} END {print value}' /etc/default/iodine
+}
+
 if [ -s /etc/default/iodine ] ; then
-       . /etc/default/iodine
+       START_IODINED="$(getvalue START_IODINED)"
        if [ -n "$START_IODINED" ] ; then
                db_set iodine/start_daemon "$START_IODINED"
        fi
+       IODINED_ARGS="$(getvalue IODINED_ARGS)"
        if [ -n "$IODINED_ARGS" ] ; then
                db_set iodine/daemon_options "$IODINED_ARGS"
        fi
+       IODINED_PASSWORD="$(getvalue IODINED_PASSWORD)"
        if [ -n "$IODINED_PASSWORD" ] ; then
                db_set iodine/daemon_password "$IODINED_PASSWORD"
        fi