Skip to content

Commit

Permalink
Format shell scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
nemchik committed Jan 15, 2023
1 parent 5c80c8e commit 98f8df3
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 98f8df3

Please sign in to comment.