From: Christian Weiske Date: Tue, 5 Feb 2013 18:14:39 +0000 (+0100) Subject: remove docs from ssh-dynds script, move them to readme X-Git-Url: https://git.cweiske.de/ssh-dyndns.git/commitdiff_plain/81715db87f0b2bdd560923025d2c3795142a4644?ds=sidebyside remove docs from ssh-dynds script, move them to readme --- diff --git a/README.rst b/README.rst index 9956dd3..55947a9 100644 --- a/README.rst +++ b/README.rst @@ -37,6 +37,7 @@ Setup $ 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 diff --git a/ssh-dyndns b/ssh-dyndns index 2df534f..903e859 100755 --- a/ssh-dyndns +++ b/ssh-dyndns @@ -1,17 +1,10 @@ #!/bin/sh -#dyndns via ssh login + djbdns/dbndns +# dyndns via ssh login + tinydns (djbdns/dbndns) # -#usage: +# usage: # $ 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 if [ -z "$SSH_CONNECTION" ]; then echo "no ssh connection" @@ -31,10 +24,10 @@ fi domain="$2" #load config files -if [ -x ~/.config/ssh-dyndns.sh ]; then +if [ -f ~/.config/ssh-dyndns.sh ]; then . ~/.config/ssh-dyndns.sh fi -if [ -x /etc/ssh-dyndns.sh ]; then +if [ -f /etc/ssh-dyndns.sh ]; then . /etc/ssh-dyndns.sh fi diff --git a/ssh-dyndns.sh.config-dist b/ssh-dyndns.sh.config-dist index e60ef37..7dd3fa8 100644 --- a/ssh-dyndns.sh.config-dist +++ b/ssh-dyndns.sh.config-dist @@ -1,8 +1,8 @@ #!/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%