Find the answer to your Linux question:
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 ...
  1. #1
    Just 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!
    Attached Files Attached Files

  2. #2
    ped
    ped is offline
    Just Joined!
    Join Date
    Jun 2005
    Posts
    1
    Which one errors out and what is the error?

  3. #3
    Just Joined!
    Join Date
    Sep 2008
    Posts
    20
    Quote Originally Posted by Minky View Post
    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.
    [...snip...]
    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'?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...