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
|