#1  
Old 18th December 2008, 17:01
newz2000 newz2000 is offline
Junior Member
 
Join Date: Jul 2006
Location: Iowa USA
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default Bug report: bash/dash

Hi, I won't pretend that this is simple to fix, but it is a bug.

The setup scripts and some of the other scripts used to install ISP Config have in their sh-bang #!/bin/sh but in reality they rely on /bin/bash. If a script is a bash script (instead of a posix-compatible shell script) then they should specify #/bin/bash since on newer Debian and Ubuntu systems /bin/sh != /bin/bash

For the record, bash takes a lot longer to start up than the simpler dash shell so dash is the default now which had a tremendous impact on boot speed. Dash is a posix compatible shell so shell scripts which conform to posix standards will work in dash or bash or numerous other shells. Posix scripts can be a pain in the butt when you're used to scripting for bash, so it's best in those cases where you don't want to rewrite/relearn to just use #!/bin/bash.

This has the additional benefit of failing outright on systems that don't have bash installed, rather than doing a half-install with tons of confusing errors and possibly leaving the system in an unusable state.
Reply With Quote
Sponsored Links
  #2  
Old 19th December 2008, 09:10
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,992
Thanks: 825
Thanked 5,375 Times in 4,222 Posts
 
Default

/bin/dash is not supported by ISPCOnfig 2 and has to be replaced so /bin/sh and /bin/bash point to /bin/bash and not /bin/dash, thats clearly described in the perfect setup guides for the affected Linux distributions.

Many software like the original apache configure scripts from apache.org do not support the way ubuntu has changed the shell and thats why it has to be configured as we describe it in the perfect setup. This will not be changed in ISPConfig 2.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Tags
bash, bug, dash

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Daily Quota report empty dbau HOWTO-Related Questions 13 9th March 2009 18:27
email receiving died ??? + report a bug in ispconfig email add/remove coolen Installation/Configuration 14 4th November 2008 19:34
Statistics admin Bug???? AlexanderTheGr General 11 2nd September 2008 01:01
Ubuntu 8.04 Spamsnake - all SA scores 0.00 Thomas_Powers HOWTO-Related Questions 23 24th June 2008 17:37
ISPConfig box and DNSstuff.com report cybereatl General 2 1st December 2006 12:32


All times are GMT +2. The time now is 18:14.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.