fixed typos

This commit is contained in:
2025-10-29 12:34:50 +01:00
parent f4e2a2e1d8
commit ac8582b093

View File

@@ -87,7 +87,7 @@ repo="https://git.x-files.dk/webserver/nginx-snippets.git"
if [[ -d "$nginxsnippets/.git" ]]; then git -C "$nginxsnippets" pull --quiet; else git clone --quiet "$repo" "$nginxsnippets"; fi
#
# Download the latest Dokuwiki
# Download the latest DokuWiki
#
wikidir="/var/www/html/$hostname" ; mkdir -p "$wikidir"
curl -sL https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz | tar -xzf - -C "$wikidir" --strip-components=1 || { echo "Download or extraction failed"; exit 1; }
@@ -103,6 +103,7 @@ sed -i "s/PHPVERSION/$phpfpm/" /etc/nginx/conf.d/"$hostname".conf
#
# Restarting Nginx and Phpfpm for changes to take effect
#
printf "\nRestarting services...\n"
systemctl restart "$phpfpm"
systemctl restart nginx
@@ -113,7 +114,7 @@ cat > /tmp/dokuwiki-postinstall <<EOF
#!/usr/bin/env bash
#
# DokiWiki Postinstall Script
# DokuWiki Postinstall Script
#
#
@@ -122,7 +123,7 @@ cat > /tmp/dokuwiki-postinstall <<EOF
if [[ $(id -u) -ne 0 ]]; then echo "" && echo "Must be root or use sudo" && echo "" ; exit ; fi
#
# Hardening of Dokuwiki
# Hardening of DokuWiki
#
sed -i 's/^[[:space:]]*#\s*location /location /g' /etc/nginx/conf.d/"$hostname".conf