We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7ddc76 commit afd90c1Copy full SHA for afd90c1
2 files changed
deployer/script/openthos.sh
@@ -16,12 +16,13 @@ warn() {
16
echo "$1"
17
}
18
19
+cd /data/mirrors/openthos
20
latest=`curl -s -v -X HEAD $HOST 2>&1 | grep 'Last-Modified:' | cut -d ':' -f2 | awk '{gsub(/^ +| +$/,"")}1'`
21
last_modified=`cat $timestamp`
22
-if [ $latest != $last_modified ]; then
23
+if [ "$latest" != "$last_modified" ]; then
24
curl $HOST -LO
- latest > $timestamp
25
+ echo "$latest" > $timestamp
26
fi
27
28
rm -f $lock
deployer/script/state.py
@@ -21,6 +21,7 @@ def getState():
last_modify = {
'centos': '/timestamp.txt',
+ 'openthos': '/timestamp.txt',
'android': '/repository',
'epel': '/fullfilelist',
'pypi': '/status'
0 commit comments