Public bug reported:
the ddclient DHCP exit hook script looks like:
[ -x /usr/sbin/ddclient ] || exit 0
[ -f /etc/default/ddclient ] || exit 0
. /etc/default/ddclient
[ $run_dhclient = "true" ] || exit 0
case $reason in
BOUND | RENEW | REBIND)
/usr/bin/logger -t dhclient $reason, updating IP address with ddclient
/usr/sbin/ddclient -daemon=0 -syslog > /dev/null 2>&1
;;
*)
;;
esac
The error is on line 7. As all the shell programming guides say, when
checking a variable you have to quote it, or in case the variable is
null (as it is in my case) you will get an error:
/sbin/dhclient-script: 7: [: =: unexpected operator
so the correct line 7 for this script is:
[ "$run_dhclient" = "true" ] || exit 0
Please fix it in LTS also as people start to complain on the forums
about this bug already.
** Affects: ddclient (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1704159
Title:
a bug in dhcp exit hook script of ddclient
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ddclient/+bug/1704159/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs