diff options
author | Michal Bialozor <bialyy@o2.pl> | 2011-03-05 18:22:25 -0300 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2011-03-05 18:22:25 -0300 |
commit | bec82caba55fdf2e2d986320cbbe15c3b8ca2ed8 (patch) | |
tree | 9da37912faafc6abbda84937f6d3a4d2da9c5ba6 /network/rssh/doinst.sh | |
parent | 53fb4f05f2cce1369eaa249d7f61e0822033b675 (diff) | |
download | slackbuilds-bec82caba55fdf2e2d986320cbbe15c3b8ca2ed8.tar.gz |
network/rssh: Added (restricted ssh)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'network/rssh/doinst.sh')
-rw-r--r-- | network/rssh/doinst.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/network/rssh/doinst.sh b/network/rssh/doinst.sh new file mode 100644 index 0000000000..408e09eda4 --- /dev/null +++ b/network/rssh/doinst.sh @@ -0,0 +1,15 @@ +config() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + # If there's no config file by that name, mv it over: + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then + # toss the redundant copy + rm $NEW + fi + # Otherwise, we leave the .new copy for the admin to consider... +} + +config etc/rssh.conf.new + |