Correct Problem With Update

This commit is contained in:
MatMoul 2015-08-21 02:00:09 +02:00
parent 335db48b3b
commit 74304c51bc
2 changed files with 5 additions and 5 deletions

8
archdi
View file

@ -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

View file

@ -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