remove docs from ssh-dynds script, move them to readme
authorChristian Weiske <cweiske@cweiske.de>
Tue, 5 Feb 2013 18:14:39 +0000 (19:14 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Tue, 5 Feb 2013 18:14:39 +0000 (19:14 +0100)
README.rst
ssh-dyndns
ssh-dyndns.sh.config-dist

index 9956dd3..55947a9 100644 (file)
@@ -37,6 +37,7 @@ Setup
     $ su - dyndns -s /bin/bash
     $ touch ~/.hushlogin
 
     $ su - dyndns -s /bin/bash
     $ touch ~/.hushlogin
 
+   Alternatively, you may commend out the "motd" lines in ``/etc/pam.d/sshd``
 5. Configure ssh-dyndns as root::
 
     $ cp /usr/local/src/ssh-dyndns/ssh-dyndns.sh.config-dist /etc/ssh-dyndns.sh
 5. Configure ssh-dyndns as root::
 
     $ cp /usr/local/src/ssh-dyndns/ssh-dyndns.sh.config-dist /etc/ssh-dyndns.sh
index 2df534f..903e859 100755 (executable)
@@ -1,17 +1,10 @@
 #!/bin/sh
 #!/bin/sh
-#dyndns via ssh login + djbdns/dbndns
+# dyndns via ssh login + tinydns (djbdns/dbndns)
 #
 #
-#usage:
+# usage:
 # $ ssh dyndns@example.org home.example.org
 #
 # $ ssh dyndns@example.org home.example.org
 #
-#user setup:
-# $ useradd -g nogroup -m -N -s /usr/local/bin/ssh-dyndns dyndns
-# .. add ssh key to user
-#do not show login messages:
-# $ su - dyndns -s /bin/bash
-# $ touch ~/.hushlogin
-# alternatively, comment out the motd lines in /etc/pam.d/sshd
-#
+# @author Christian Weiske <cweiske@cweiske.de>
 
 if [ -z "$SSH_CONNECTION" ]; then
    echo "no ssh connection"
 
 if [ -z "$SSH_CONNECTION" ]; then
    echo "no ssh connection"
@@ -31,10 +24,10 @@ fi
 domain="$2"
 
 #load config files
 domain="$2"
 
 #load config files
-if [ -x ~/.config/ssh-dyndns.sh ]; then
+if [ -f ~/.config/ssh-dyndns.sh ]; then
     . ~/.config/ssh-dyndns.sh
 fi
     . ~/.config/ssh-dyndns.sh
 fi
-if [ -x /etc/ssh-dyndns.sh ]; then
+if [ -f /etc/ssh-dyndns.sh ]; then
     . /etc/ssh-dyndns.sh
 fi
 
     . /etc/ssh-dyndns.sh
 fi
 
index e60ef37..7dd3fa8 100644 (file)
@@ -1,8 +1,8 @@
 #!/bin/sh
 #!/bin/sh
-#ssh-dyndns configuration file.
-#possible locations:
-# /etc/ssh-dyndns.sh
-# ~/.config/ssh-dyndns.sh
+# ssh-dyndns configuration file.
+# possible locations:
+# /etc/ssh-dyndns.sh
+# ~/.config/ssh-dyndns.sh
 
 data_dir=/tmp/
 file_pattern=data-dyndns-%DOMAIN%
 
 data_dir=/tmp/
 file_pattern=data-dyndns-%DOMAIN%