aboutsummaryrefslogtreecommitdiffstats
path: root/checkupdate.sh
blob: 0eda521d4e9dbe49023a3fdcd091159c3b01ca6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/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