Permalink
Browse files

Update openthos

Update openthos
  • Loading branch information...
imcmy committed Feb 13, 2017
1 parent b7ddc76 commit afd90c144809bcfca66d7cbb98e3ee2276670bff
Showing with 4 additions and 2 deletions.
  1. +3 −2 deployer/script/openthos.sh
  2. +1 −0 deployer/script/state.py
@@ -16,12 +16,13 @@ warn() {
echo "$1"
}
cd /data/mirrors/openthos
latest=`curl -s -v -X HEAD $HOST 2>&1 | grep 'Last-Modified:' | cut -d ':' -f2 | awk '{gsub(/^ +| +$/,"")}1'`
last_modified=`cat $timestamp`
if [ $latest != $last_modified ]; then
if [ "$latest" != "$last_modified" ]; then
curl $HOST -LO
latest > $timestamp
echo "$latest" > $timestamp
fi
rm -f $lock
View
@@ -21,6 +21,7 @@ def getState():
last_modify = {
'centos': '/timestamp.txt',
'openthos': '/timestamp.txt',
'android': '/repository',
'epel': '/fullfilelist',
'pypi': '/status'

0 comments on commit afd90c1

Please sign in to comment.