forked from pool/apache2
This commit is contained in:
committed by
Git OBS Bridge
parent
6588ab82eb
commit
0defb1aea2
@@ -19,7 +19,13 @@ else
|
||||
fi
|
||||
|
||||
#echo -n writing sysconfig.d/loadmodule.conf
|
||||
exec 3>$sysconfdir/sysconfig.d/loadmodule.conf
|
||||
TMPFILE=`/bin/mktemp /tmp/$pname.XXXXXXXXXXXX`
|
||||
if [ -z "$TMPFILE" ]; then
|
||||
echo >&2 Error: could not create temporary file for writing loadmodules.conf.
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exec 3>$TMPFILE
|
||||
echo >&3 "#
|
||||
# Files in this directory are created at apache start time by /usr/sbin/rc$pname
|
||||
# Do not edit them!
|
||||
@@ -98,6 +104,8 @@ for i in ${APACHE_MODULES[*]}; do
|
||||
done
|
||||
echo >&3 -e "#\n"
|
||||
exec 3<&-
|
||||
chmod 644 $TMPFILE
|
||||
mv $TMPFILE $sysconfdir/sysconfig.d/loadmodule.conf
|
||||
#echo -n ". "
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user