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"
|
||||
clear
|
||||
echo "Checking internet and server connexion ..."
|
||||
lastver=$lastverurl1
|
||||
version="2015.08.21.01.45.15"
|
||||
lastverurl=$lastverurl1
|
||||
lastversion=$(curl $lastverurl)
|
||||
if [ "$?" = "0" ] && [ "${#lastversion}" = "19" ]; then
|
||||
binurl=$binurl1
|
||||
liburl=$liburl1
|
||||
else
|
||||
lastver=$lastverurl2
|
||||
version="2015.08.21.01.45.15"
|
||||
lastverurl=$lastverurl2
|
||||
lastversion=$(curl $lastverurl)
|
||||
if [ "$?" = "0" ] && [ "${#lastversion}" = "19" ]; then
|
||||
binurl=$binurl2
|
||||
liburl=$liburl2
|
||||
|
|
|
@ -91,7 +91,7 @@ scp -r $targetpath matmoul@web.sourceforge.net:/home/frs/project/$prjname/releas
|
|||
echo "Update redirect page..."
|
||||
pubfile=.build/index.php
|
||||
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 "?>" >> $pubfile
|
||||
scp $pubfile matmoul@web.sourceforge.net:/home/project-web/$prjname/htdocs/$prjname/index.php
|
||||
|
|
Loading…
Reference in a new issue