From d547db2f02780743e29b4283e87015dfc1863e6f Mon Sep 17 00:00:00 2001 From: TheSpad Date: Sun, 6 Nov 2022 15:13:54 +0000 Subject: [PATCH 1/2] Add lsiown alias --- docker-mods.v3 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docker-mods.v3 b/docker-mods.v3 index 2299baa..4b7b577 100755 --- a/docker-mods.v3 +++ b/docker-mods.v3 @@ -147,6 +147,18 @@ process_custom_services_legacy() { fi } +#Create our noisy chown alias to handle read-only/remote volumes +create_lsiown_alias() { + cat <<- EOF > /usr/bin/lsiown + #!/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' + + EOF + + chmod +x /usr/bin/lsiown +} + # Check for curl curl_check() { if [[ ! -f /usr/bin/curl ]] || [[ ! -f /usr/bin/jq ]]; then @@ -308,3 +320,5 @@ fi # Set executable bit on legacy cont-init and services built into the image and anything legacy unpacked by mods set_legacy_executable_bits + +create_lsiown_alias From e4e5ad17ef10573c9c04da2d9fbe4edfe06b45d2 Mon Sep 17 00:00:00 2001 From: TheSpad Date: Sun, 6 Nov 2022 15:15:11 +0000 Subject: [PATCH 2/2] Tidy indents --- docker-mods.v3 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docker-mods.v3 b/docker-mods.v3 index 4b7b577..e059c9e 100755 --- a/docker-mods.v3 +++ b/docker-mods.v3 @@ -149,14 +149,14 @@ process_custom_services_legacy() { #Create our noisy chown alias to handle read-only/remote volumes create_lsiown_alias() { - cat <<- EOF > /usr/bin/lsiown - #!/bin/bash + cat <<- EOF > /usr/bin/lsiown + #!/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' - EOF + EOF - chmod +x /usr/bin/lsiown + chmod +x /usr/bin/lsiown } # Check for curl