Koozali.org: home of the SME Server

[solved] ddclient template

Offline soundrolf

  • **
  • 38
  • +0/-0
[solved] ddclient template
« on: August 07, 2014, 04:13:31 PM »
/etc/ddclient.conf

protocol=dyndns2
use=web
web=checkip.spdns.de
server=update.spdns.de
ssl=no
login=USERNAME
password='PASSWORD'
HOSTNAME.spdns.de


This is what I need. It works for me.
Is there a way to do it with a template, because otherwise after an update this file will be overwritten.
I made a copy of this file in /root . So I can copy it back to /etc after update. But this is not a good solution.

SME Server 8.1

Thanks
« Last Edit: August 08, 2014, 01:41:10 PM by soundrolf »

Offline Arnie

  • ****
  • 81
  • +0/-0
  • Old Dog, New Tricks.
Re: ddclient template
« Reply #1 on: August 08, 2014, 02:54:42 AM »
cp /etc/ddclient.conf /etc/e-smith/templates-custom/etc/ddclient.conf/10ddclientconfig

Then do:

expand-template /etc/ddclient.conf

whenever you need to regenerate it.
...

Offline soundrolf

  • **
  • 38
  • +0/-0
Re: ddclient template
« Reply #2 on: August 08, 2014, 01:40:32 PM »
Thank you

Rolf