From 5e50586452a685aa2270d646481c3619f12fa427 Mon Sep 17 00:00:00 2001 From: Eric Nemchik Date: Sun, 15 Jan 2023 09:49:20 -0600 Subject: [PATCH] Format shell scripts --- root/etc/cont-init.d/50-config | 1 + root/etc/services.d/snapdrop-server/run | 1 + root/migrations/02-default-location | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/root/etc/cont-init.d/50-config b/root/etc/cont-init.d/50-config index 05c4707..b11f30d 100644 --- a/root/etc/cont-init.d/50-config +++ b/root/etc/cont-init.d/50-config @@ -1,4 +1,5 @@ #!/usr/bin/with-contenv bash +# shellcheck shell=bash # permissions chown -R abc:abc \ diff --git a/root/etc/services.d/snapdrop-server/run b/root/etc/services.d/snapdrop-server/run index 15a6b51..6404dfd 100644 --- a/root/etc/services.d/snapdrop-server/run +++ b/root/etc/services.d/snapdrop-server/run @@ -1,4 +1,5 @@ #!/usr/bin/with-contenv bash +# shellcheck shell=bash cd /app/www/server || exit 1 diff --git a/root/migrations/02-default-location b/root/migrations/02-default-location index 3d3d2f8..595f4ae 100644 --- a/root/migrations/02-default-location +++ b/root/migrations/02-default-location @@ -1,10 +1,11 @@ #!/usr/bin/with-contenv bash +# shellcheck shell=bash DEFAULT_CONF="/config/nginx/site-confs/default.conf" OLD_ROOT="root /app/snapdrop/client;" NEW_ROOT="root /app/www/client;" -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