diff options
author | Marcel Saegebarth <marc@mos6581.de> | 2015-09-17 22:47:09 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-09-17 22:47:09 +0700 |
commit | 867d100009292fab894b0d3f89eca6964a3cfa85 (patch) | |
tree | bfc9f254eea78b0ce62b74162546fcdf97d150fe /network/sftp-cloudfs/doinst.sh | |
parent | b14979cbd611981f76cb57353f541fbe210d51fd (diff) | |
download | slackbuilds-867d100009292fab894b0d3f89eca6964a3cfa85.tar.gz |
network/sftp-cloudfs: Added (SFTP interface).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/sftp-cloudfs/doinst.sh')
-rw-r--r-- | network/sftp-cloudfs/doinst.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/network/sftp-cloudfs/doinst.sh b/network/sftp-cloudfs/doinst.sh new file mode 100644 index 0000000000..ba4a70f16f --- /dev/null +++ b/network/sftp-cloudfs/doinst.sh @@ -0,0 +1,14 @@ +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/sftpcloudfs.conf.new |