Browscap fixes
gitea/hedera-web/master This commit looks good Details

This commit is contained in:
Juan Ferrer 2020-01-23 08:32:18 +01:00
parent 5fa047214a
commit d91a40de3e
3 changed files with 4 additions and 4 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
hedera-web (1.406.97) stable; urgency=low
hedera-web (1.406.98) stable; urgency=low
* Initial Release.

View File

@ -1,6 +1,6 @@
{
"name": "hedera-web",
"version": "1.406.97",
"version": "1.406.98",
"description": "Verdnatura web page",
"license": "GPL-3.0",
"repository": {

View File

@ -9,11 +9,11 @@ if [ -f "$versionFile" ]; then
currentVersion=$(cat "$phpCfgDir/browscap.version")
fi
lastVersion=$(wget --quiet -O - http://browscap.org/version-number)
lastVersion=$(curl -s http://browscap.org/version-number)
if [ "$lastVersion" -gt "$currentVersion" ] || [ ! -f "$browscapFile" ]; then
echo -n "$lastVersion" > "$versionFile"
wget --quiet -O "$browscapFile" https://browscap.org/stream?q=Lite_PHP_BrowsCapINI
curl -s -o "$browscapFile" https://browscap.org/stream?q=Lite_PHP_BrowsCapINI
echo "Browscap updated."
else
echo "Browscap up to date."