Fix indent

This commit is contained in:
Eric Nemchik
2023-01-21 08:56:19 -06:00
parent 316a123538
commit 6cf45c4b06
+9 -7
View File
@@ -72,6 +72,7 @@ process_custom_services() {
# Create our noisy chown alias to handle read-only/remote volumes # Create our noisy chown alias to handle read-only/remote volumes
create_lsiown_alias() { create_lsiown_alias() {
# intentional tabs in the heredoc
cat <<-EOF >/usr/bin/lsiown cat <<-EOF >/usr/bin/lsiown
#!/bin/bash #!/bin/bash
chown "\$@" || printf '**** Permissions could not be set. This is probably because your volume mounts are remote or read-only. ****\n**** The app may not work properly and we will not provide support for it. ****\n' chown "\$@" || printf '**** Permissions could not be set. This is probably because your volume mounts are remote or read-only. ****\n**** The app may not work properly and we will not provide support for it. ****\n'
@@ -86,15 +87,16 @@ create_with_contenv_alias() {
return return
fi fi
rm -rf /usr/bin/with-contenv rm -rf /usr/bin/with-contenv
# intentional tabs in the heredoc
cat <<-EOF >/usr/bin/with-contenv cat <<-EOF >/usr/bin/with-contenv
#!/bin/bash #!/bin/bash
if [[ -f /run/s6/container_environment/UMASK ]] && if [[ -f /run/s6/container_environment/UMASK ]] &&
{ [[ "$(pwdx \$\$)" =~ "/run/s6/legacy-services/" ]] || { [[ "$(pwdx \$\$)" =~ "/run/s6/legacy-services/" ]] ||
[[ "$(pwdx \$\$)" =~ "/run/s6/services/" ]] || [[ "$(pwdx \$\$)" =~ "/run/s6/services/" ]] ||
[[ "$(pwdx \$\$)" =~ "/servicedirs/svc-" ]]; }; then [[ "$(pwdx \$\$)" =~ "/servicedirs/svc-" ]]; }; then
umask "$(cat /run/s6/container_environment/UMASK)" umask "$(cat /run/s6/container_environment/UMASK)"
fi fi
exec /command/with-contenv "\$@" exec /command/with-contenv "\$@"
EOF EOF
chmod +x /usr/bin/with-contenv chmod +x /usr/bin/with-contenv
} }