Results 1 to 3 of 3
Hi! I'm trying to make a automated build-script with bash but i keep getting different errors that I can't seem to figure out. Could anyone please tell me what's wrong ...
- 04-14-2010 #1Just Joined!
- Join Date
- Nov 2004
- Posts
- 1
Scripting problem
Hi! I'm trying to make a automated build-script with bash but i keep getting different errors that I can't seem to figure out. Could anyone please tell me what's wrong with this package of build-scripts? I'm posting the main build-script and attaching the rest of the scripts in a compressed form. The errors mainly comes from the scripts in "/first_installation/usr/share/siem-live/init"
My system is a clean ubuntu 8.04 server install.
Code:#!/bin/bash debconf-set-selections --v /home/epm/first_installation/preseed/prelude.seed #run-parts --v --list /home/epm/first_installation/packagelist/ sh /home/epm/first_installation/packagelist/misc.sh sh /home/epm/first_installation/packagelist/nufw.sh sh /home/epm/first_installation/packagelist/openvas.sh sh /home/epm/first_installation/packagelist/prelude.sh sh /home/epm/first_installation/packagelist/security.sh sh /home/epm/first_installation/packagelist/snort.sh #run-parts --v --list /home/epm/first_installation/usr/share/siem-live/init sh /home/epm/first_installation/usr/share/siem-live/init/10-rngtools.sh sh /home/epm/first_installation/usr/share/siem-live/init/20-rsyslog.sh sh /home/epm/first_installation/usr/share/siem-live/init/50-prelude-database.sh sh /home/epm/first_installation/usr/share/siem-live/init/50-prewikka-database.sh sh /home/epm/first_installation/usr/share/siem-live/init/60-prelude-correlator.sh sh /home/epm/first_installation/usr/share/siem-live/init/70-prelude-notify.sh sh /home/epm/first_installation/usr/share/siem-live/init/99-first_boot_prelude.sh sh /home/epm/first_installation/usr/share/siem-live/init/99-first_boot_prewikka.sh sh /home/epm/first_installation/usr/share/siem-live/init/99-snort.sh echo Script is DONE!
- 04-14-2010 #2Just Joined!
- Join Date
- Jun 2005
- Posts
- 1
Which one errors out and what is the error?
- 04-14-2010 #3Just Joined!
- Join Date
- Sep 2008
- Posts
- 20
First of all, try to cut off the leading 'sh ' when calling sub-scripts (let it have from first line starting with '#!' of each script, the command they have to run with).
Second: such scripts have apt-get and other administrative functions. Are you running the first build script as root, or by issuing a 'sudo'?


Reply With Quote
