summaryrefslogtreecommitdiffstats
path: root/tools/snapshot
diff options
context:
space:
mode:
Diffstat (limited to 'tools/snapshot')
0 files changed, 0 insertions, 0 deletions
diff --git a/tools/sfsnapshot b/tools/sfsnapshot
index c9c56bd..1a8a02f 100755
--- a/tools/sfsnapshot
+++ b/tools/sfsnapshot
@@ -80,15 +80,22 @@ done
80set -x 80set -x
81files=$(ls $IN/*.gz 2>/dev/null) 81files=$(ls $IN/*.gz 2>/dev/null)
82[[ -z $files ]] && die "No files created" 82[[ -z $files ]] && die "No files created"
83head_file=$(cd $IN && ls *HEAD*.gz 2>/dev/null)
83ssh -2 $OUT_SERVER "rm -f $OUT/*.gz" 84ssh -2 $OUT_SERVER "rm -f $OUT/*.gz"
84scp -2 $files $OUT_SERVER:$OUT 85scp -2 $files $OUT_SERVER:$OUT
86if [[ -n $head_file ]] ; then
87 ssh -2 $OUT_SERVER "cd $OUT && ln -s $head_file nagios-plugins-HEAD.tar.gz"
88fi
85 89
86# Create MD5 sum 90# Create MD5 sum
87ssh -2 $OUT_SERVER << EOF 91ssh -2 $OUT_SERVER << EOF
88cd $OUT 92cd $OUT
89cat <<-END_README > README 93cat <<-END_README > README
90This is the daily CVS snapshot of nagiosplug, consisting of the CVS HEAD 94This is the daily CVS snapshot of nagiosplug, consisting of the CVS HEAD
91and any other branches 95and any other branches.
96
97The nagios-plugins-HEAD.tar.gz link will always go to the latest HEAD snapshot.
98
92The MD5SUM is: 99The MD5SUM is:
93END_README 100END_README
94md5sum *.gz | tee -a README > MD5SUM 101md5sum *.gz | tee -a README > MD5SUM