Installer suggestion
Posted: 28 Apr 2014 14:44
When I tried to configure EFA-3.0.0.1 for the first time I ran into a problem with the installer hanging when it was running freshclam to update the virus database.
The problem turned out to be that dnsmasq hadn't started so freshclam couldn't resolve the address. Therefore I suggest EFA-Init be patched to make sure there's a working DNS before trying to access the network.
The following patch does that and also gives root a possibility to opt-out of the initial config.
<-- snip -->
--- /usr/local/sbin/EFA-Init.org 2014-02-01 22:14:36.786902001 +0100
+++ /usr/local/sbin/EFA-Init 2014-04-28 14:34:00.184767775 +0200
@@ -19,6 +19,13 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# +--------------------------------------------------------------------+
+echo -n "Start EFA first-time configure (y/n) -> "
+read StartConf
+if [ ! $StartConf = y ]; then
+ echo Aborting EFA-Init. It can be rerun later using /usr/local/sbin/EFA-Init
+ exit 0
+fi
+
# +---------------------------------------------------+
# Variables
# +---------------------------------------------------+
@@ -666,6 +673,9 @@
su postfix -s /bin/bash -c 'razor-admin -register'
sed -i '/^debuglevel/ c\debuglevel = 0' /var/spool/postfix/.razor/razor-agent.conf
# +--------------------------------------------------+
+
+ service dnsmasq start
+ sleep 3
# +--------------------------------------------------+
# Update clamav and spamassassin rules
<-- snip -->
Regards,
Peder
The problem turned out to be that dnsmasq hadn't started so freshclam couldn't resolve the address. Therefore I suggest EFA-Init be patched to make sure there's a working DNS before trying to access the network.
The following patch does that and also gives root a possibility to opt-out of the initial config.
<-- snip -->
--- /usr/local/sbin/EFA-Init.org 2014-02-01 22:14:36.786902001 +0100
+++ /usr/local/sbin/EFA-Init 2014-04-28 14:34:00.184767775 +0200
@@ -19,6 +19,13 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# +--------------------------------------------------------------------+
+echo -n "Start EFA first-time configure (y/n) -> "
+read StartConf
+if [ ! $StartConf = y ]; then
+ echo Aborting EFA-Init. It can be rerun later using /usr/local/sbin/EFA-Init
+ exit 0
+fi
+
# +---------------------------------------------------+
# Variables
# +---------------------------------------------------+
@@ -666,6 +673,9 @@
su postfix -s /bin/bash -c 'razor-admin -register'
sed -i '/^debuglevel/ c\debuglevel = 0' /var/spool/postfix/.razor/razor-agent.conf
# +--------------------------------------------------+
+
+ service dnsmasq start
+ sleep 3
# +--------------------------------------------------+
# Update clamav and spamassassin rules
<-- snip -->
Regards,
Peder