Correct Problem With Update
This commit is contained in:
parent
335db48b3b
commit
74304c51bc
2 changed files with 5 additions and 5 deletions
8
archdi
8
archdi
|
@ -63,14 +63,14 @@ dependencies(){
|
||||||
needinstall="false"
|
needinstall="false"
|
||||||
clear
|
clear
|
||||||
echo "Checking internet and server connexion ..."
|
echo "Checking internet and server connexion ..."
|
||||||
lastver=$lastverurl1
|
lastverurl=$lastverurl1
|
||||||
version="2015.08.21.01.45.15"
|
lastversion=$(curl $lastverurl)
|
||||||
if [ "$?" = "0" ] && [ "${#lastversion}" = "19" ]; then
|
if [ "$?" = "0" ] && [ "${#lastversion}" = "19" ]; then
|
||||||
binurl=$binurl1
|
binurl=$binurl1
|
||||||
liburl=$liburl1
|
liburl=$liburl1
|
||||||
else
|
else
|
||||||
lastver=$lastverurl2
|
lastverurl=$lastverurl2
|
||||||
version="2015.08.21.01.45.15"
|
lastversion=$(curl $lastverurl)
|
||||||
if [ "$?" = "0" ] && [ "${#lastversion}" = "19" ]; then
|
if [ "$?" = "0" ] && [ "${#lastversion}" = "19" ]; then
|
||||||
binurl=$binurl2
|
binurl=$binurl2
|
||||||
liburl=$liburl2
|
liburl=$liburl2
|
||||||
|
|
|
@ -91,7 +91,7 @@ scp -r $targetpath matmoul@web.sourceforge.net:/home/frs/project/$prjname/releas
|
||||||
echo "Update redirect page..."
|
echo "Update redirect page..."
|
||||||
pubfile=.build/index.php
|
pubfile=.build/index.php
|
||||||
echo "<?php" > $pubfile
|
echo "<?php" > $pubfile
|
||||||
echo "header(\"Location: http://downloads.sourceforge.net/project/$prjname/release/$version/$prjname\");" >> $pubfile
|
echo "header(\"Location: http://downloads.sourceforge.net/project/$prjname/release/bin/$version/$prjname\");" >> $pubfile
|
||||||
echo "exit;" >> $pubfile
|
echo "exit;" >> $pubfile
|
||||||
echo "?>" >> $pubfile
|
echo "?>" >> $pubfile
|
||||||
scp $pubfile matmoul@web.sourceforge.net:/home/project-web/$prjname/htdocs/$prjname/index.php
|
scp $pubfile matmoul@web.sourceforge.net:/home/project-web/$prjname/htdocs/$prjname/index.php
|
||||||
|
|
Loading…
Reference in a new issue