1
0
Fork 0
mirror of https://gitlab.com/niansa/simpsh-httpd.git synced 2025-03-06 20:53:36 +01:00

Create main.sh

This commit is contained in:
niansa 2017-03-09 08:59:36 +01:00 committed by GitHub
parent 877b9aec59
commit 8cb834f9ed

22
main.sh Normal file
View file

@ -0,0 +1,22 @@
#! /bin/bash
# Initalisiere Variablen
. ./init.sh
# Lese configdatei
. ./config.sh
# Lese HTTP-Anfrage
. ./readrequest.sh
# Eine kurze sicherheutsüberprüfung...
. ./urlcheck.sh
# Schreibe fertiges HTML-Dokument
. ./writehtml.sh
# Verwende unix2dos auf das Dokument...
unix2dos $HTMLFILE &> /dev/null
# Gebe fertiges HTML-Dokument aus
cat $HTMLFILE