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

Update main.sh

This commit is contained in:
niansa 2018-07-03 16:19:22 +00:00
parent d9a68f5333
commit c1ca209835

16
main.sh
View file

@ -1,25 +1,25 @@
#! /bin/bash
# Initalisiere Variablen
# Variable initalisation
. ./init.sh
# Lese configdatei
# Read the config file
. ./config.sh
# Lese HTTP-Anfrage
# Read the HTTP-request
. ./readrequest.sh
# Und vieles andere...
# Some URL checks and modifications
. ./urlcheck.sh
# Wenn das Dokument schon fertig ist, dann den folgenden Schritt überspringen
# Skip following step, if the document is already created successfully
if [ "$DONE" != "true" ]; then
# Schreibe fertiges HTML-Dokument
# Write finished file
. ./sendfile.sh
fi
# Verwende unix2dos auf das Dokument...
# Convert Unix to Dos
unix2dos $OUTFILE &> /dev/null
# Gebe fertiges HTML-Dokument aus
# Print finished document
cat $OUTFILE