db_set iodine/start_daemon "$START_IODINED"
fi
if [ -n "$IODINED_ARGS" ] ; then
- db_set iodine/daemon_options "$DAEMON_IODINED_ARGS"
+ db_set iodine/daemon_options "$IODINED_ARGS"
+ fi
+ if [ -n "$IODINED_PASSWORD" ] ; then
+ db_set iodine/daemon_password "$IODINED_PASSWORD"
fi
fi
if [ "x$START_DAEMON" = "xtrue" ] ; then
db_input medium iodine/daemon_options || true
+ db_input medium iodine/daemon_password || true
db_go
fi
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
START_IODINED=$RET
db_get iodine/daemon_options
IODINED_ARGS=$RET
+ db_get iodine/daemon_password
+ IODINED_PASSWORD=$RET
cat <<EOF > /etc/default/iodine
# Default settings for iodine. This file is sourced from
# /etc/init.d/iodined
START_IODINED="$START_IODINED"
IODINED_ARGS="$IODINED_ARGS"
+IODINED_PASSWORD="$IODINED_PASSWORD"
EOF
;;
_Description: Options to iodined (server):
You need to give the necessary arguments to iodined; see iodined(8) for help.
Example: 10.0.0.1 tunnel.mydomain.example
+
+Template: iodine/daemon_password
+Type: password
+_Description: Password for iodined (server):
+ Enter the password iodined uses at startup. It has to be used by clients
+ when connecting.
+ This password will be stored in plain text in /etc/default/iodine.