mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	Don't fail when running the Debian init script directly (as one would normally do).
readlink apparently returns 1 when the arg isn't a symlink, which caused the script to exit. (closes issue #17910) Reported by: wurstsalat git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@287195 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -54,7 +54,7 @@ fi | ||||
| . /lib/lsb/init-functions | ||||
|  | ||||
| # Allow configuration overrides in /etc/default/asterisk | ||||
| CONFIG0=`readlink $0` | ||||
| CONFIG0=`readlink $0 || :` # readlink returns 1 when something isn't a symlink | ||||
| if [ "$CONFIG0" = "" ]; then | ||||
| 	CONFIGFILE=/etc/default/`basename $0` | ||||
| else | ||||
|   | ||||
		Reference in New Issue
	
	Block a user