Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
executable file
·
14 lines (14 loc) · 619 Bytes

File metadata and controls

executable file
·
14 lines (14 loc) · 619 Bytes
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
FILENAME=`date +"log.pull.%Y%m%d-%H%M%S.log"`
su - freenet-tests /var/local/run-bootstrap-pull-test "$FILENAME"
STATUS=$?
time=`date +"/var/www/freenet/tests/boot-pull/%Y/%m/%d/output.%H-%M-%S.log"`
mkdir -p `dirname $time`
if [[ $STATUS == 0 ]]; then
mv ~freenet-tests/$FILENAME $time
chown root.root $time
(echo Subject: Pull bootstrap test completed; echo; cat $time | grep RESULT; echo; echo Log at $time; echo ".") | /usr/sbin/sendmail toad
else
mv ~freenet-tests/$FILENAME ${time}.failed
(echo Subject: Pull bootstrap test FAILED; echo; cat ${time}.failed; echo ".") | /usr/sbin/sendmail toad
fi
Morty Proxy This is a proxified and sanitized view of the page, visit original site.