mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-01 12:31:49 -04:00
Merge pull request #521 from linuxserver/mod-scripts-lsiown
This commit is contained in:
@@ -147,6 +147,18 @@ process_custom_services_legacy() {
|
|||||||
fi
|
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
|
# Check for curl
|
||||||
curl_check() {
|
curl_check() {
|
||||||
if [[ ! -f /usr/bin/curl ]] || [[ ! -f /usr/bin/jq ]]; then
|
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 executable bit on legacy cont-init and services built into the image and anything legacy unpacked by mods
|
||||||
set_legacy_executable_bits
|
set_legacy_executable_bits
|
||||||
|
|
||||||
|
create_lsiown_alias
|
||||||
|
|||||||
Reference in New Issue
Block a user