implement password option for debconf/default
[debian/iodine.git] / debian / iodine.iodined.init
index d3bc8c8c94210c97ad6aebcbe3f79c9920bcdbe5..c1f19a2d45400963511ba819559f1465b7ac740c 100644 (file)
@@ -43,8 +43,8 @@ get_config() {
                log_warning_msg "$NAME is not configured to start automatically. Change this in /etc/default/$DEFAULT or run dpkg-reconfigure $DEFAULT."
                exit 0
        else
-               if [ -n "$IODINED_ARGS" ] ; then
-                       DAEMON_ARGS=$IODINED_ARGS
+               if [ -n "$IODINED_ARGS" ] && [ -n "$IODINED_PASSWORD" ] ; then
+                       DAEMON_ARGS="-P $IODINED_PASSWORD $IODINED_ARGS"
                else
                        log_warning_msg "$NAME is not fully configured. Change this in /etc/default/$DEFAULT or run dpkg-reconfigure $DEFAULT."
                        exit 0