Closed
Bug 508636
Opened 16 years ago
Closed 12 years ago
Unable to script download of latest stable Firefox
Categories
(Websites :: Other, enhancement)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 920460
People
(Reporter: hendry, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1) Gecko/20090707 Firefox/2.0 (Debian-3.5-1)
Build Identifier:
I want to boot into a kiosk machine and have the latest stable Firefox running at all times. I want to script it so I download the latest Firefox from http://download.mozilla.org/, however only URLs with version numbers seem to work, e.g.
http://download.mozilla.org/?product=firefox-3.5.2&os=linux&lang=en-US
Could you please make a product alias to download the latest stable?
e.g.
http://download.mozilla.org/?product=firefox&os=linux&lang=en-US
http://download.mozilla.org/?product=stable-firefox&os=linux&lang=en-US
Or something like that.
Reproducible: Always
Steps to Reproduce:
1. wget "http://download.mozilla.org/?product=firefox&os=linux&lang=en-US"
2.
3.
Actual Results:
404
Expected Results:
To download latest greatest Firefox.
| Reporter | ||
Comment 1•16 years ago
|
||
I've now noticed:
http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest/linux-i686/en-US/firefox-3.5.2.tar.bz2
I could perhaps get curl to sniff it down, but it still it would be better if `wget "http://download.mozilla.org/?product=latest&os=linux&lang=en-US" ` worked.
Comment 2•16 years ago
|
||
Confirming as a request for enhancement.
Severity: normal → enhancement
OS: Linux → All
Updated•12 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
Script if you needed, just chose different language:
#!/bin/sh
dirL=/dev/shm/install
dirM=//10.0.1.201/Install
password="password"
if [ ! -d $dirL ]; then
mkdir $dirL
fi
echo $password | sudo -S mount -t cifs -o username=login,password=password,file_mode=0777,dir_mode=0777,_netdev $dirM $dirL
path=/dev/shm/win-updates
pathC=$dirL/updates/compare
pathU=$dirL/updates/install
if [ ! -d $path ]; then
mkdir -m0700 $path
else
rm $path/*
fi
cd $path
#rm $path/*
############
# proxy
############
proxy_choice=0
login=""
pass=""
if [ $proxy_choice -eq 1 ]; then
export http_proxy="http://server:port"
proxy="--proxy-user=$login --proxy-password=$pass"
else
proxy=""
fi
############
# compare_n_download
############
compare_n_download()
{
nW=$(wget $proxy --spider $link 2>&1 | grep Length | awk '{print $2}')
for fname in $dname
do
# file size
nC=$(stat -c %s $pathC/$fname)
if [ $nW -ne $nC ]; then
wget $proxy -O $dname $link
fi
rm $path/*.html
done
}
############
# compare_n_pick
############
compare_n_pick()
{
for fname in $dname
do
if [ -e "$dname" ]; then
# file size
nN=$(stat -c %s $path/$fname)
nC=$(stat -c %s $pathC/$fname)
if [ $nN -ne $nC ]; then
rsync $path/$fname $pathC
cp $pathC/$fname $pathU
fi
rm $path/*
fi
done
}
############
# download
############
############
flashplayer()
{
dname=fp.exe
link="http://download.macromedia.com/get/flashplayer/current/licensing/win/install_flash_player_11_plugin.exe"
compare_n_download
compare_n_pick
}
############
java()
{
dname=j.exe
wget $proxy -E -H -k -K -p -nd --accept=html http://www.java.com/en/download/manual.jsp
link=`grep -i -R "Download Java software for Windows Offline" manual.jsp.html | uniq -i | sed 's/^[ \t]*//;s/[ \t]*$//' | cut -c 61- | sed 's/">\+$//'`
compare_n_download
compare_n_pick
}
############
firefox()
{
dname=ff.exe
wget $proxy -E -H -k -K -p -nd --accept=html http://download.cdn.mozilla.net/pub/firefox/releases/latest/win32/ru/
link=`grep -i "fox" index.html | grep -v "tub" | uniq -i | sed 's/^[ \t]*//;s/[ \t]*$//' `
link=${link##<*http}
link=${link%%'">'*}
link="http$link"
compare_n_download
compare_n_pick
}
############
libreoffice()
{
dname=lo.msi
wget $proxy -E -H -k -K -p -nd --accept=html http://download.documentfoundation.org/libreoffice/stable/
vnumber=`grep -i [0-9].[0-9].[4-6] index.html | sed 's/^[ \t]*//;s/[ \t]*$//' `
vnumber=${vnumber##<*'stable/'[0-9].[0-9].[4-6]'/">'}
vnumber=${vnumber%%'/</a>'*}
vnumber=$vnumber
link="http://download.documentfoundation.org/libreoffice/stable/"$vnumber"/win/x86/LibreOffice_"$vnumber"_Win_x86.msi"
compare_n_download
compare_n_pick
}
############
# update
############
flashplayer
java
firefox
libreoffice
echo $password | sudo -S umount $dirL
You need to log in
before you can comment on or make changes to this bug.
Description
•