Skip to content

Commit

Permalink
Merge pull request #20 from linuxserver/format
Browse files Browse the repository at this point in the history
Format shell scripts
  • Loading branch information
nemchik committed Jan 18, 2023
2 parents 5c80c8e + 98f8df3 commit 1bc0d2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions root/etc/cont-init.d/50-config
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash

# make our folders
mkdir -p \
Expand Down
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 /usr/share/webapps/librespeed;"
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 1bc0d2b

Please sign in to comment.