downloading script

bjseiler

Verified User
Joined
Jun 19, 2003
Messages
197
I had this problem and somebody else had the same so here is how I was able to download directadmin.

Every time I tried running the wget from the command line, it gave me errors so I just make a shell script to do it and then it worked for some reason.

Create a file get.sh and chmod 755 it.

#!/bin/sh
wget https://www.directadmin.com/cgi-bin/daupdate?lid=0000\&uid=000 -O /usr/local/directadmin/update.tar.gz

This only on two lines, make sure it is only on two lines in your editor.

at the prompt, run ./get.sh and it should work. Obvoiusly, replace the 000's with your lid and uid.
 

bjseiler

Verified User
Joined
Jun 19, 2003
Messages
197
Let me clarify,

#!/bin/sh is on one line
everything else is on the next
 

DirectAdmin Support

Administrator
Staff member
Joined
Feb 27, 2003
Messages
8,961
Hello,

FreeBSD doesn't come with wget, it only has fetch, *but* fetch doesn't support https, which is needed for the download, SO, do the following first:

pkg_add -r wget

John
 

josetann

Verified User
Joined
Aug 3, 2003
Messages
29
Location
Tennessee
Thanks! I was beating my head against the wall trying to get this to work. It downloaded something when I put quotes around the URL, but it definitely wasn't the full download. Putting it in a script worked.
 

DirectAdmin Support

Administrator
Staff member
Joined
Feb 27, 2003
Messages
8,961
Hello,

I'm currently working on a much nicer download script that is OS independant (freebsd or redhat) and doesn't require any of that mess. :D Just download one file, run, and follow directions.

John
 

DirectAdmin Support

Administrator
Staff member
Joined
Feb 27, 2003
Messages
8,961
Hehe, the "mess" is from our installer.. the whole wget ?uid=123\&lid=1234 -O really long path.. etc etc.. is the mess im referring to :) ... new method:

get and run:
setup.sh

:D

John
 
Top