Skip to content

Commit

Permalink
Merge pull request linuxserver#50 from linuxserver/format
Browse files Browse the repository at this point in the history
Format shell scripts
  • Loading branch information
nemchik authored Jan 18, 2023
2 parents bd7f2f4 + 398c8f7 commit 280d29a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion root/migrations/02-default-location
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash

DEFAULT_CONF="/config/nginx/site-confs/default.conf"
OLD_ROOT="root /var/www/html/public;"
NEW_ROOT="root /app/www/public;"

if grep -q "${OLD_ROOT}" "${DEFAULT_CONF}";then
if grep -q "${OLD_ROOT}" "${DEFAULT_CONF}"; then
echo "updating root in ${DEFAULT_CONF}"
sed -i "s|${OLD_ROOT}|${NEW_ROOT}|" "${DEFAULT_CONF}"
fi

0 comments on commit 280d29a

Please sign in to comment.