luci-app-ddns: modified to support ddns-scripts 2.1.0-2
[project/luci.git] / applications / luci-ddns / ipkg / postinst
index a2c13fa..938f746 100644 (file)
@@ -1,5 +1,10 @@
 #!/bin/sh
 [ -n "${IPKG_INSTROOT}" ] || {
+       # luci updates are not in sync with ddns-script updates !!!
+       # needed because luci update might delete helper script
+       # copy dynamic_dns_helper.tmp.sh from ddns-scripts
+       cp -f /usr/lib/ddns/dynamic_dns_lucihelper.tmp.sh /usr/lib/ddns/dynamic_dns_lucihelper.sh
+
        ( . /etc/uci-defaults/luci-ddns ) && rm -f /etc/uci-defaults/luci-ddns
        exit 0
 }