LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   wget options not working on kickstart script (https://www.linuxquestions.org/questions/linux-newbie-8/wget-options-not-working-on-kickstart-script-4175473325/)

tripialos 08-14-2013 05:32 AM

wget options not working on kickstart script
 
Hi


I have made a kickstart script which works pretty well apart from its post-installation script. I have tried many things but still aint working hence i came to ask for little help

my script:
Code:

%post --nochroot --log=/mnt/sysimage/root/ks-post.log
/usr/bin/wget -r -nH  ftp://192.168.0.101:/myscript/* -P /mnt/sysimage/root/
chmod -R 755 /mnt/sysimage/root/*
cp /mnt/sysimage/root/myscript /mnt/sysimage/etc/init.d/
chmod 755 /mnt/sysimage/etc/init.d/myscript
/sbin/chkconfig myscript on


I tried all sort of variations but still not working. I cheked the ks-log and i noticed the following errors:

Code:

/usr/bin/wget: invalid option -- r                                                 
BusyBox v1.2.0 (2009.09.03-17:16+0000) multi-call binary                           
                                                                                   
Usage: wget [-c|--continue] [-q|--quiet] [-O|--output-document file]               
                [--header 'header: value'] [-Y|--proxy on/off] [-P DIR] url         
                                                                                   
wget retrieves files via HTTP or FTP                                               
                                                                                   
Options:                                                                           
        -c      continue retrieval of aborted transfers                             
        -q      quiet mode - do not print                                           
        -P      Set directory prefix to DIR                                         
        -O      save to filename ('-' for stdout)                                   
        -Y      use proxy ('on' or 'off')

For some reason wget option switches are not working on the kickstartscript. If i use the command on a terminal it works just fine.

any ides

szboardstretcher 08-14-2013 01:39 PM

Quote:

invalid option -- r
It's telling you what is wrong. Busybox is using an older version, or a custom version of wget that does not have the -r option.

tripialos 08-16-2013 03:14 AM

Quote:

Originally Posted by szboardstretcher (Post 5009299)
It's telling you what is wrong. Busybox is using an older version, or a custom version of wget that does not have the -r option.

Thanks. I didnt know what busybox was nor i ever met this "term" by now. I used the wget without any options and it worked fine.


All times are GMT -5. The time now is 11:32 PM.