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:
parent
d9a68f5333
commit
c1ca209835
1 changed files with 8 additions and 8 deletions
16
main.sh
16
main.sh
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue