diff options
author | James Meyer <james.meyer@operamail.com> | 2011-08-19 18:23:42 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2011-08-19 18:23:42 (GMT) |
commit | 855cc7eb5a1ec13cc4ac28a910c79633703aa18f (patch) | |
tree | 8e740605bbbdd5cb0d959072201e3d2b66a821a4 /abs/core/LinHES-config/mv_ddns.py | |
parent | b1b4f59f40b122ee1a9cfa0c3a0f7a6a3b488f5f (diff) | |
download | linhes_pkgbuild-855cc7eb5a1ec13cc4ac28a910c79633703aa18f.zip linhes_pkgbuild-855cc7eb5a1ec13cc4ac28a910c79633703aa18f.tar.gz linhes_pkgbuild-855cc7eb5a1ec13cc4ac28a910c79633703aa18f.tar.bz2 |
linhes-config: clean up etc/fstab (pts shm)
added service to list of things to unsquash .upgrades from CD will now work
Converted most calls to the systemconfig dict to use .get. This will stop KEYERRORS form occuring.
Diffstat (limited to 'abs/core/LinHES-config/mv_ddns.py')
-rwxr-xr-x | abs/core/LinHES-config/mv_ddns.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/abs/core/LinHES-config/mv_ddns.py b/abs/core/LinHES-config/mv_ddns.py index 9695f76..5d432a1 100755 --- a/abs/core/LinHES-config/mv_ddns.py +++ b/abs/core/LinHES-config/mv_ddns.py @@ -10,16 +10,16 @@ def setup_ddns(systemconfig): return logging.info("____Start of setup_ddns____") - if systemconfig["DDnsEnable"] == "1": + if systemconfig.get("DDnsEnable") == "1": logging.debug(" Enabling DDNS") mv_common.pacinstall("ddclient") mv_common.cp_and_log("/etc/ddclient/ddclient.conf.dynamic.dyndns.sample", "/etc/ddclient/ddclient.conf") - cmd = ''' sed -i -e "s/your-dynamic-dyndns-login/%s/g" /etc/ddclient/ddclient.conf''' %(systemconfig["DDnslogin"]) + cmd = ''' sed -i -e "s/your-dynamic-dyndns-login/%s/g" /etc/ddclient/ddclient.conf''' %(systemconfig.get("DDnslogin")) mv_common.runcmd(cmd) - cmd = ''' sed -i -e "s/your-dynamic-dyndns-password/%s/g" /etc/ddclient/ddclient.conf''' %(systemconfig["DDnspassword"]) + cmd = ''' sed -i -e "s/your-dynamic-dyndns-password/%s/g" /etc/ddclient/ddclient.conf''' %(systemconfig.get("DDnspassword")) mv_common.runcmd(cmd) - cmd = ''' sed -i -e "s/your-dynamic-dyndns-host/%s/g" /etc/ddclient/ddclient.conf''' %(systemconfig["DDnshostname"]) + cmd = ''' sed -i -e "s/your-dynamic-dyndns-host/%s/g" /etc/ddclient/ddclient.conf''' %(systemconfig.get("DDnshostname")) mv_common.runcmd(cmd) mv_common.add_service("ddclient") else: |