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.
1 parent 32df06d commit ed2f423Copy full SHA for ed2f423
root/migrations/02-default-location
@@ -0,0 +1,10 @@
1
+#!/usr/bin/with-contenv bash
2
+
3
+DEFAULT_CONF="/config/nginx/site-confs/default.conf"
4
+OLD_ROOT="root /var/www/html/public;"
5
+NEW_ROOT="root /app/www/public;"
6
7
+if grep -q "${OLD_ROOT}" "${DEFAULT_CONF}";then
8
+ echo "updating root in ${DEFAULT_CONF}"
9
+ sed -i "s|${OLD_ROOT}|${NEW_ROOT}|" "${DEFAULT_CONF}"
10
+fi
0 commit comments