Freeradius’ init script fails

Bug #66568 reported by Tobias Wolf
52
This bug affects 1 person
Affects Status Importance Assigned to Milestone
freeradius (Ubuntu)
Fix Released
Undecided
MOTU

Bug Description

I installed Freeradius but apt failed to configure it.

These were the incriminating lines:
Setting up freeradius (1.1.3-1) ...
Adding group `freerad' (116)...
Done.
Adding system user `freerad' with uid 106...
Adding new user `freerad' (106) with group `freerad'.
Not creating home directory `/etc/freeradius'.
Adding user `freerad' to group `shadow'...
Done.
/etc/init.d/freeradius: 15: source: not found
invoke-rc.d: initscript freeradius, action "start" failed.

It appears the change to dash is responsible. When I changed the shebang to #!/bin/bash it worked.

Revision history for this message
Joe Bruce (joe-bruce-psu) wrote :

The "proper" fix (used by the other init scripts in /etc/init.d) is to replace the "source" on line 15 with a period. The line should then read:

. /lib/lsb/init-functions

This fixes the FreeRADIUS script and maintains consistency with the other init scripts.

Revision history for this message
Joe Bruce (joe-bruce-psu) wrote :

I apologize the for the incorrect patch -- I checked it first, inserted my USB key, and ended up with a bogus patch for /etc/mtab. Gotta love Mercurial for controlling /etc, but I still need to fine-tune which files are controlled. :(

Revision history for this message
kohtachi (kohtachi) wrote : Re: Freeradius’ init script fails....HELP

Selecting previously deselected package freeradius.
(Reading database ... 89872 files and directories currently installed.)
Unpacking freeradius (from freeradius_1.1.0-1ubuntu2_i386.deb) ...
Setting up freeradius (1.1.0-1ubuntu2) ...
Adding group `freerad' (116)...
Done.
Adding system user `freerad' with uid 110...
Adding new user `freerad' (110) with group `freerad'.
Not creating home directory `/etc/freeradius'.
/etc/init.d/freeradius: 6: source: not found
invoke-rc.d: initscript freeradius, action "start" failed.

Ran the install file using the command line "sudo dpkg -i freeradius_1.1.0-1ubuntu2_i386.deb" and get this error. Changed shebang "#!/bin/bash" and it still didn't work. Any suggestions are welcomed. Thanks in advance.

Thanks,
kohtachi

Revision history for this message
Tobias Wolf (towolf) wrote :

Did you modify this and run it?

/var/lib/dpkg/info/freeradius.postinst

Revision history for this message
Tobias Wolf (towolf) wrote :

I’m sorry, that was actually another package.

Changed in freeradius:
status: Unconfirmed → Confirmed
Changed in freeradius:
assignee: nobody → motu
Revision history for this message
Emmet Hikory (persia) wrote :

Fix included in debian upload of 1.1.3-3.

Changed in freeradius:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.