You've already forked dokuwiki-ubuntu
fixed typos
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user