Export FTP server and added username/password to VERSION file upload.
This commit is contained in:
@@ -12,6 +12,8 @@ VERSION=`echo $TAG | grep -o "[0-9]\\+-\\?[0-9]\\?"`
|
|||||||
|
|
||||||
FTPSERVER=openra.res0l.net
|
FTPSERVER=openra.res0l.net
|
||||||
|
|
||||||
|
export FTPSERVER
|
||||||
|
|
||||||
case "$TYPE" in
|
case "$TYPE" in
|
||||||
"release")
|
"release")
|
||||||
FTPPATH="openra.res0l.net/releases"
|
FTPPATH="openra.res0l.net/releases"
|
||||||
@@ -118,5 +120,5 @@ esac
|
|||||||
wait
|
wait
|
||||||
|
|
||||||
if [ "$TYPE" = "release" ]; then
|
if [ "$TYPE" = "release" ]; then
|
||||||
wput --basename=../ -u ../VERSION ftp://$FTPSERVER/$FTPPATH/master/
|
wput --basename=../ -u ../VERSION ftp://$2:$3@$FTPSERVER/$FTPPATH/master/
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ VERSION=$2
|
|||||||
FILENAME=$3
|
FILENAME=$3
|
||||||
FTPPATH=$4
|
FTPPATH=$4
|
||||||
|
|
||||||
FTP="ftp://$5:$6@openra.res0l.net/${FTPPATH}/${PLATFORM}/"
|
FTP="ftp://$5:$6@${FTPSERVER}/${FTPPATH}/${PLATFORM}/"
|
||||||
|
|
||||||
if [ ! -e "${FILENAME}" ]; then
|
if [ ! -e "${FILENAME}" ]; then
|
||||||
echo "File not found: ${FILENAME}"
|
echo "File not found: ${FILENAME}"
|
||||||
|
|||||||
Reference in New Issue
Block a user