🔒 Repository is read-only – file editing is disabled.
123456789101112131415161718192021
INFO="\033[1;36m"
NORMAL="\033[0;39m"
[ -f etc/httpd/httpd.conf.example ] && sed \
-e 's@User apache@User http@' \
-e 's@Group apache@Group http@' \
-i etc/httpd/httpd.conf.example
if [ ! -f etc/httpd/httpd.conf ]; then
cp etc/httpd/httpd.conf{.example,}
printf "${INFO} /etc//httpd/httpd.conf created ${NORMAL}\n"
printf "${INFO} Double check /etc//httpd/httpd.conf and adapted to your needs ${NORMAL}\n"
fi
if [ ! -f srv/www/index.html ]; then
cp srv/www/index.html{.apache.example,}
printf "${INFO} /srv/www/index.html created ${NORMAL}\n"
fi
SYSTEMD_TMPFILE=$(which systemd-tmpfile)
[ -z "$SYSTEMD_TMPFILE" ] || $SYSTEMD_TMPFILE --create httpd.conf