summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c5601df)
raw | patch | inline | side by side (parent: c5601df)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Wed, 24 Nov 2004 21:34:56 +0000 (21:34 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Wed, 24 Nov 2004 21:34:56 +0000 (21:34 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@936 f882894a-f735-0410-b71e-b25c423dba1c
tools/sfsnapshot | patch | blob | history |
diff --git a/tools/sfsnapshot b/tools/sfsnapshot
index a383760e852ea83808d4aa8f5732010066b52c5a..c9c56bd6ec929ad1dde0ded6ad3a96b6fb9502fb 100755 (executable)
--- a/tools/sfsnapshot
+++ b/tools/sfsnapshot
# Variables will be expanded locally before being run on $CF
ssh $CF <<EOF
set -x
- PATH=$PATH
+ PATH=$PATH:/usr/local/bin
[[ ! -d $COMPILE_DIR/$cvs_rel ]] && mkdir -p $COMPILE_DIR/$cvs_rel
cd $COMPILE_DIR/$cvs_rel
cd $PROJECT
- # TODO: Maybe this should only be run when necessary?
tools/setup
./configure
# May fail if file not generated - do not trap
mv *.gz $IN
+ rm -rf $COMPILE_DIR
# End ssh
EOF
}
OUT="/home/groups/n/na/nagiosplug/htdocs/snapshot"
# Make sure prereqs are satisfied on server!
-CF="x86-solaris1"
+CF="x86-linux2"
DS=`date -u +%Y%m%d%H%M`
# Setup home directory area
set -x
files=$(ls $IN/*.gz 2>/dev/null)
[[ -z $files ]] && die "No files created"
-ssh $OUT_SERVER "rm -f $OUT/*.gz"
-scp $files $OUT_SERVER:$OUT
+ssh -2 $OUT_SERVER "rm -f $OUT/*.gz"
+scp -2 $files $OUT_SERVER:$OUT
# Create MD5 sum
-ssh $OUT_SERVER << EOF
+ssh -2 $OUT_SERVER << EOF
cd $OUT
cat <<-END_README > README
This is the daily CVS snapshot of nagiosplug, consisting of the CVS HEAD