We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 097d344 + a200367 commit e2e5f21Copy full SHA for e2e5f21
root/migrations/02-default-location
@@ -1,10 +1,11 @@
1
#!/usr/bin/with-contenv bash
2
+# shellcheck shell=bash
3
4
DEFAULT_CONF="/config/nginx/site-confs/default.conf"
5
OLD_ROOT="root /app/dokuwiki;"
6
NEW_ROOT="root /app/www/public;"
7
-if grep -q "${OLD_ROOT}" "${DEFAULT_CONF}";then
8
+if grep -q "${OLD_ROOT}" "${DEFAULT_CONF}"; then
9
echo "updating root in ${DEFAULT_CONF}"
10
sed -i "s|${OLD_ROOT}|${NEW_ROOT}|" "${DEFAULT_CONF}"
11
fi
0 commit comments