Summary: | ASTERISK-12412: [patch] /usr/sbin/safe_asterisk: 31: Syntax error: "(" unexpected | ||
Reporter: | Paul Belanger (pabelanger) | Labels: | |
Date Opened: | 2008-07-18 22:33:13 | Date Closed: | 2010-03-25 12:02:20 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) 2008071900_issue13111_safe_asterisk.diff ( 1) 2008071901_issue13111_safe_asterisk.diff | |
Description: | using safe_asterisk from 1.6.0 branch on Ubuntu 8.04 LTS Server, throws the following error: /usr/sbin/safe_asterisk: 31: Syntax error: "(" unexpected ****** ADDITIONAL INFORMATION ****** Work around is to change #!/bin/sh back to #!/bin/bash | ||
Comments: | By: Michiel van Baak (mvanbaak) 2008-07-19 05:24:24 Can you try this patch ? By: Paul Belanger (pabelanger) 2008-07-19 07:42:42 mvanbaak: Thanks for the quick patch, however here is the new error after applying it. /usr/sbin/safe_asterisk: 192: Syntax error: Bad fd number By: Michiel van Baak (mvanbaak) 2008-07-19 08:14:03 thanks for the feedback. Can you try this one ? By: Paul Belanger (pabelanger) 2008-07-19 11:12:20 +1, patch works. Thanks. By: Digium Subversion (svnbot) 2008-08-01 07:09:11 Repository: asterisk Revision: 135061 U trunk/contrib/scripts/safe_asterisk ------------------------------------------------------------------------ r135061 | mvanbaak | 2008-08-01 07:09:10 -0500 (Fri, 01 Aug 2008) | 8 lines Make safe_asterisk work on dash/sh/bash etc. (closes issue ASTERISK-12412) Reported by: pabelanger Patches: 2008071901_issue13111_safe_asterisk.diff uploaded by mvanbaak (license 7) Tested by: mvanbaak, pabelanger ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=135061 By: Digium Subversion (svnbot) 2010-03-25 12:02:19 Repository: asterisk Revision: 254539 _U branches/1.6.0/ U branches/1.6.0/contrib/scripts/safe_asterisk ------------------------------------------------------------------------ r254539 | lmadsen | 2010-03-25 12:02:17 -0500 (Thu, 25 Mar 2010) | 28 lines Make safe_asterisk work on dash/sh/bash etc. Merged from the change to trunk via issue ASTERISK-12412. For some reason the changes there were only done on trunk, and thus were available for 1.6.1 and 1.6.2 when they were branched. Because this change is available on both 1.6.1 and 1.6.2, it makes sense to allow it on the 1.6.0 branch as well. (closes issue ASTERISK-15874) Reported by: stuarth Much thanks to Tilghman and Sean Bright for the help on this merge. Merged revisions 135061 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ........ r135061 | mvanbaak | 2008-08-01 07:17:33 -0500 (Fri, 01 Aug 2008) | 8 lines Make safe_asterisk work on dash/sh/bash etc. (closes issue ASTERISK-12412) Reported by: pabelanger Patches: 2008071901_issue13111_safe_asterisk.diff uploaded by mvanbaak (license 7) Tested by: mvanbaak, pabelanger ........ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=254539 |