</Layout>
EOF
- groupadd -f ${APACHE_USER}
- hv_useradd -c WebServer -d /dev/null -g ${APACHE_USER} -s /bin/false \
- ${APACHE_USER}
+ groupadd -f ${HTTPD_USER}
+ hv_useradd -c WebServer -d /dev/null -g ${HTTPD_USER} -s /bin/false \
+ ${HTTPD_USER}
CONFIGURE_OPTS=" \
--enable-layout=FHS \
# Modifying the configuration file to run the server as a dedicated user:
sed -i \
- -e "s!^\(User\).*!\1 ${APACHE_USER}!g" \
- -e "s!^\(Group\).*!\1 ${APACHE_USER}!g" \
+ -e "s!^\(User\).*!\1 ${HTTPD_USER}!g" \
+ -e "s!^\(Group\).*!\1 ${HTTPD_USER}!g" \
${CONFDIR}/httpd.conf
# SSL Certificates generation script
sed -i -e "s!^ServerAdmin .*!ServerAdmin webmaster@${DOMAIN}!" ${CONFDIR}/ssl/ssl.conf
sed -i -e "s!${CONFDIR}!${CONFDIR}/ssl!" ${CONFDIR}/ssl/ssl.conf
- chown -v -R ${APACHE_USER}:${APACHE_USER} /srv/www
+ chown -v -R ${HTTPD_USER}:${HTTPD_USER} /srv/www
# Bootscript
install -v -m740 ${SCRDIR}/bootscripts/apache /etc/rc.d/init.d
hvconfig_pre()
{
- groupadd -f ${APACHE_USER}
- hv_useradd -c WebServer -d /dev/null -g ${APACHE_USER} -s /bin/false \
- ${APACHE_USER}
+ groupadd -f ${HTTPD_USER}
+ hv_useradd -c WebServer -d /dev/null -g ${HTTPD_USER} -s /bin/false \
+ ${HTTPD_USER}
}
hvbuild_post()
)))
EOF
- chown -v -R ${APACHE_USER}:${APACHE_USER} /srv/www
+ chown -v -R ${HTTPD_USER}:${HTTPD_USER} /srv/www
# Bootscript
cp -p doc/initscripts/sysconfig.lighttpd /etc/sysconfig/lighttpd
hvbuild()
{
mv ${LFS_TMP}/${PACKAGE} /srv/www/htdocs/squirrelmail
- chown -v -R ${APACHE_USER}:${APACHE_USER} /srv/www/htdocs/squirrelmail
+ chown -v -R ${HTTPD_USER}:${HTTPD_USER} /srv/www/htdocs/squirrelmail
mkdir -v -p /srv/squirrelmail/{data,attach}
- chown -v -R ${APACHE_USER}:${APACHE_USER} /srv/squirrelmail
+ chown -v -R ${HTTPD_USER}:${HTTPD_USER} /srv/squirrelmail
chmod -v 0730 /srv/squirrelmail/attach
cp /srv/www/htdocs/squirrelmail/config/config_default.php \