diff options
author | M.Gergo | 2018-07-06 11:34:04 +0200 |
---|---|---|
committer | M.Gergo | 2018-07-06 11:34:04 +0200 |
commit | 095e5987eadbe3786be5e12ef385bda9640155b0 (patch) | |
tree | e796dcd1c575094cf43e0b0b7d4c8fb22896e66f /checkupdate.sh | |
parent | 43de9af71f7f4ca5731b94a06d688ae8412ba427 (diff) | |
download | mayor-095e5987eadbe3786be5e12ef385bda9640155b0.tar.gz mayor-095e5987eadbe3786be5e12ef385bda9640155b0.zip |
checkupdate.sh + portal 2018/Feb kiinduló
Diffstat (limited to 'checkupdate.sh')
-rw-r--r-- | checkupdate.sh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/checkupdate.sh b/checkupdate.sh new file mode 100644 index 00000000..1fff70cf --- /dev/null +++ b/checkupdate.sh @@ -0,0 +1,32 @@ +#!/bin/bash + + +orev=$(cat rev.txt) +nrev=$(wget http://www.mayor.hu/download/rev.txt -O -) + +pd=$(pwd) + +if [ "$nrev" -gt "$orev" ]; then + + wget http://www.mayor.hu/download/rev.txt -O rev.txt + + cd /tmp/ + wget http://www.mayor.hu/download/current/mayor-base-current.tgz + wget http://www.mayor.hu/download/current/mayor-naplo-current.tgz + wget http://www.mayor.hu/download/current/mayor-portal-current.tgz + + wget http://www.mayor.hu/download/current/mayor-installer-current.tgz + + cd $pd/mayor-installer-orig/ + tar -xzf /tmp/mayor-installer-current.tgz + + cd $pd/mayor-orig/ + tar -xzf /tmp/mayor-base-current.tgz + tar -xzf /tmp/mayor-naplo-current.tgz + tar -xzf /tmp/mayor-portal-current.tgz + + + +fi + + |