From d9265a96daf3412849ae08aacd4b4a26fc0aa7c6 Mon Sep 17 00:00:00 2001 From: Alexandre Date: Wed, 20 Jul 2022 18:11:30 +0200 Subject: [PATCH] Correct execute permissions --- addons_updater/Dockerfile | 7 +++++++ arpspoof/Dockerfile | 7 +++++++ bazarr/Dockerfile | 7 +++++++ bitwarden/Dockerfile | 7 +++++++ booksonic_air/Dockerfile | 7 +++++++ calibre/Dockerfile | 7 +++++++ calibre_web/Dockerfile | 7 +++++++ cloudcommander/Dockerfile | 7 +++++++ code-server/Dockerfile | 7 +++++++ elasticsearch/Dockerfile | 7 +++++++ emby/Dockerfile | 7 +++++++ enedisgateway2mqtt/Dockerfile | 7 +++++++ enedisgateway2mqtt_dev/Dockerfile | 7 +++++++ filebrowser/Dockerfile | 7 +++++++ fireflyiii/Dockerfile | 7 +++++++ fireflyiii_data_importer/Dockerfile | 7 +++++++ fireflyiii_fints_importer/Dockerfile | 7 +++++++ flaresolverr/Dockerfile | 7 +++++++ flexget/Dockerfile | 7 +++++++ gazpar2mqtt/Dockerfile | 7 +++++++ grav/Dockerfile | 7 +++++++ guacamole/Dockerfile | 7 +++++++ inadyn/Dockerfile | 7 +++++++ jackett/Dockerfile | 7 +++++++ jellyfin/Dockerfile | 7 +++++++ joal/Dockerfile | 7 +++++++ joplin/Dockerfile | 7 +++++++ lidarr/Dockerfile | 7 +++++++ mealie/Dockerfile | 7 +++++++ mylar3/Dockerfile | 7 +++++++ nextcloud/Dockerfile | 7 +++++++ nzbget/Dockerfile | 7 +++++++ omada/Dockerfile | 7 +++++++ ombi/Dockerfile | 7 +++++++ organizr/Dockerfile | 7 +++++++ overseerr/Dockerfile | 7 +++++++ paperless_ngx/Dockerfile | 7 +++++++ papermerge/Dockerfile | 7 +++++++ photoprism/Dockerfile | 7 +++++++ piwigo/Dockerfile | 7 +++++++ plex/Dockerfile | 7 +++++++ plex_meta_manager/Dockerfile | 7 +++++++ portainer/Dockerfile | 7 +++++++ prowlarr/Dockerfile | 7 +++++++ qbittorrent/Dockerfile | 7 +++++++ radarr/Dockerfile | 7 +++++++ readarr/Dockerfile | 7 +++++++ requestrr/Dockerfile | 7 +++++++ resiliosync/Dockerfile | 7 +++++++ scrutiny/Dockerfile | 7 +++++++ scrutiny_fa/Dockerfile | 7 +++++++ seafile/Dockerfile | 7 +++++++ sonarr/Dockerfile | 7 +++++++ spotweb/Dockerfile | 11 +++++++++-- tandoor_recipes/Dockerfile | 7 +++++++ tdarr/Dockerfile | 7 +++++++ teamspeak/Dockerfile | 7 +++++++ transmission/Dockerfile | 7 +++++++ transmission_openvpn/Dockerfile | 7 +++++++ ubooquity/Dockerfile | 7 +++++++ unpackerr/Dockerfile | 7 +++++++ webtop_kde/Dockerfile | 7 +++++++ webtrees/Dockerfile | 7 +++++++ whoogle/Dockerfile | 7 +++++++ xteve/Dockerfile | 7 +++++++ zoneminder/Dockerfile | 7 +++++++ 66 files changed, 464 insertions(+), 2 deletions(-) diff --git a/addons_updater/Dockerfile b/addons_updater/Dockerfile index 7cb30a384..006989c74 100644 --- a/addons_updater/Dockerfile +++ b/addons_updater/Dockerfile @@ -35,6 +35,13 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \ # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh" diff --git a/arpspoof/Dockerfile b/arpspoof/Dockerfile index bf69905e4..4b1761602 100644 --- a/arpspoof/Dockerfile +++ b/arpspoof/Dockerfile @@ -34,6 +34,13 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \ # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh 00-global_var.sh" diff --git a/bazarr/Dockerfile b/bazarr/Dockerfile index ff71c7cda..8e12c18a3 100644 --- a/bazarr/Dockerfile +++ b/bazarr/Dockerfile @@ -45,6 +45,13 @@ RUN \ # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh 92-local_mounts.sh 92-smb_mounts.sh" diff --git a/bitwarden/Dockerfile b/bitwarden/Dockerfile index 40897651b..356591690 100644 --- a/bitwarden/Dockerfile +++ b/bitwarden/Dockerfile @@ -42,6 +42,13 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \ # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh" diff --git a/booksonic_air/Dockerfile b/booksonic_air/Dockerfile index f1d6a3b79..ce9241ea2 100644 --- a/booksonic_air/Dockerfile +++ b/booksonic_air/Dockerfile @@ -41,6 +41,13 @@ RUN \ # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh 92-local_mounts.sh 92-smb_mounts.sh" diff --git a/calibre/Dockerfile b/calibre/Dockerfile index 057858550..17d49b782 100644 --- a/calibre/Dockerfile +++ b/calibre/Dockerfile @@ -46,6 +46,13 @@ RUN sed -i 's/bash/bashio/g' /etc/cont-init.d/10-adduser \ # Copy local files COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh 92-local_mounts.sh 92-smb_mounts.sh" diff --git a/calibre_web/Dockerfile b/calibre_web/Dockerfile index 48f9b8250..e0c83d9e1 100644 --- a/calibre_web/Dockerfile +++ b/calibre_web/Dockerfile @@ -46,6 +46,13 @@ RUN sed -i 's/bash/bashio/g' /etc/cont-init.d/10-adduser \ # Copy local files COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh 00-global_var.sh 92-local_mounts.sh 92-smb_mounts.sh" diff --git a/cloudcommander/Dockerfile b/cloudcommander/Dockerfile index f19487502..069f7c46d 100644 --- a/cloudcommander/Dockerfile +++ b/cloudcommander/Dockerfile @@ -33,6 +33,13 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \ # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh 92-local_mounts.sh 92-smb_mounts.sh" diff --git a/code-server/Dockerfile b/code-server/Dockerfile index 1a81b65b6..fde379ea8 100644 --- a/code-server/Dockerfile +++ b/code-server/Dockerfile @@ -43,6 +43,13 @@ RUN \ # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh 92-local_mounts.sh 92-smb_mounts.sh" diff --git a/elasticsearch/Dockerfile b/elasticsearch/Dockerfile index 854adc06a..0fe90e60a 100644 --- a/elasticsearch/Dockerfile +++ b/elasticsearch/Dockerfile @@ -47,6 +47,13 @@ RUN sed -i '5a echo "Data location moved. Please wait while elasticsearch starts # Copy local files COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh" diff --git a/emby/Dockerfile b/emby/Dockerfile index 58a62d7c2..9b3011a7a 100644 --- a/emby/Dockerfile +++ b/emby/Dockerfile @@ -47,6 +47,13 @@ RUN \ # Copy local files COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh 92-local_mounts.sh 92-smb_mounts.sh" diff --git a/enedisgateway2mqtt/Dockerfile b/enedisgateway2mqtt/Dockerfile index c647c078d..2a006d8eb 100644 --- a/enedisgateway2mqtt/Dockerfile +++ b/enedisgateway2mqtt/Dockerfile @@ -34,6 +34,13 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \ # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh 00-global_var.sh" diff --git a/enedisgateway2mqtt_dev/Dockerfile b/enedisgateway2mqtt_dev/Dockerfile index 0305d8a63..7cca4638d 100644 --- a/enedisgateway2mqtt_dev/Dockerfile +++ b/enedisgateway2mqtt_dev/Dockerfile @@ -34,6 +34,13 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \ # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh 00-global_var.sh" diff --git a/filebrowser/Dockerfile b/filebrowser/Dockerfile index adfb23380..a822848c0 100644 --- a/filebrowser/Dockerfile +++ b/filebrowser/Dockerfile @@ -35,6 +35,13 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \ # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh 92-local_mounts.sh 92-smb_mounts.sh" diff --git a/fireflyiii/Dockerfile b/fireflyiii/Dockerfile index 07d3ffec3..805304424 100644 --- a/fireflyiii/Dockerfile +++ b/fireflyiii/Dockerfile @@ -48,6 +48,13 @@ RUN \ # Copy local files COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh 00-global_var.sh 90-config_yaml.sh" diff --git a/fireflyiii_data_importer/Dockerfile b/fireflyiii_data_importer/Dockerfile index 6f8ccd715..661473625 100644 --- a/fireflyiii_data_importer/Dockerfile +++ b/fireflyiii_data_importer/Dockerfile @@ -41,6 +41,13 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \ # Copy local files COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh 00-global_var.sh 90-config_yaml.sh" diff --git a/fireflyiii_fints_importer/Dockerfile b/fireflyiii_fints_importer/Dockerfile index 7c6cded44..0a122de49 100644 --- a/fireflyiii_fints_importer/Dockerfile +++ b/fireflyiii_fints_importer/Dockerfile @@ -36,6 +36,13 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \ # Copy local files COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh" diff --git a/flaresolverr/Dockerfile b/flaresolverr/Dockerfile index cd2cae52a..adda83bf8 100644 --- a/flaresolverr/Dockerfile +++ b/flaresolverr/Dockerfile @@ -35,6 +35,13 @@ USER root # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh" diff --git a/flexget/Dockerfile b/flexget/Dockerfile index 1feae17d3..16b587b99 100644 --- a/flexget/Dockerfile +++ b/flexget/Dockerfile @@ -53,6 +53,13 @@ RUN \ # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh 00-global_var.sh" diff --git a/gazpar2mqtt/Dockerfile b/gazpar2mqtt/Dockerfile index bcefe7f62..886516424 100644 --- a/gazpar2mqtt/Dockerfile +++ b/gazpar2mqtt/Dockerfile @@ -36,6 +36,13 @@ ENV TZ=Europe/Paris # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh 90-config_yaml.sh" diff --git a/grav/Dockerfile b/grav/Dockerfile index f2a010dfd..4eece617e 100644 --- a/grav/Dockerfile +++ b/grav/Dockerfile @@ -44,6 +44,13 @@ RUN \ # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh" diff --git a/guacamole/Dockerfile b/guacamole/Dockerfile index 1967e9b5f..b96bb0d8f 100644 --- a/guacamole/Dockerfile +++ b/guacamole/Dockerfile @@ -61,6 +61,13 @@ RUN \ # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh" diff --git a/inadyn/Dockerfile b/inadyn/Dockerfile index a4ff91787..401e8f4b7 100644 --- a/inadyn/Dockerfile +++ b/inadyn/Dockerfile @@ -37,6 +37,13 @@ ENV LANG='C.UTF-8'\ # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh" diff --git a/jackett/Dockerfile b/jackett/Dockerfile index e6b38e656..4f0218641 100644 --- a/jackett/Dockerfile +++ b/jackett/Dockerfile @@ -45,6 +45,13 @@ ENV XDG_CONFIG_HOME="/config/addons_config" # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh 92-local_mounts.sh 92-smb_mounts.sh" diff --git a/jellyfin/Dockerfile b/jellyfin/Dockerfile index f9276b4b1..7d2219b9d 100644 --- a/jellyfin/Dockerfile +++ b/jellyfin/Dockerfile @@ -40,6 +40,13 @@ RUN \ # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh 92-local_mounts.sh 92-smb_mounts.sh" diff --git a/joal/Dockerfile b/joal/Dockerfile index 7a0f14d6f..169029395 100644 --- a/joal/Dockerfile +++ b/joal/Dockerfile @@ -46,6 +46,13 @@ RUN \ # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Manual apps ENV PACKAGES="jq \ nginx" diff --git a/joplin/Dockerfile b/joplin/Dockerfile index 1f4b43f6c..c643413e2 100644 --- a/joplin/Dockerfile +++ b/joplin/Dockerfile @@ -38,6 +38,13 @@ RUN echo insecure >> ~/.curlrc # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh 00-global_var.sh" diff --git a/lidarr/Dockerfile b/lidarr/Dockerfile index b7dd57553..4d0fbe293 100644 --- a/lidarr/Dockerfile +++ b/lidarr/Dockerfile @@ -44,6 +44,13 @@ RUN \ # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh 92-local_mounts.sh 92-smb_mounts.sh" diff --git a/mealie/Dockerfile b/mealie/Dockerfile index f27b4fae2..f93c61a58 100644 --- a/mealie/Dockerfile +++ b/mealie/Dockerfile @@ -38,6 +38,13 @@ RUN grep -rl "/app/data" /app | xargs sed -i 's|/app/data|/data|g' # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh" diff --git a/mylar3/Dockerfile b/mylar3/Dockerfile index 990bcd2d5..3ba5bd4d4 100644 --- a/mylar3/Dockerfile +++ b/mylar3/Dockerfile @@ -42,6 +42,13 @@ RUN sed -i "s|/config|/data|g" /etc/services.d/*/run \ # Copy local files COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh 92-local_mounts.sh 92-smb_mounts.sh" diff --git a/nextcloud/Dockerfile b/nextcloud/Dockerfile index 16ec34657..25e422794 100644 --- a/nextcloud/Dockerfile +++ b/nextcloud/Dockerfile @@ -61,6 +61,13 @@ RUN \ # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh 92-local_mounts.sh 92-smb_mounts.sh" diff --git a/nzbget/Dockerfile b/nzbget/Dockerfile index 40904ddcc..f5fd2d015 100644 --- a/nzbget/Dockerfile +++ b/nzbget/Dockerfile @@ -44,6 +44,13 @@ RUN sed -i "s|/config|/config/addons_config/nzbget|g" /etc/services.d/nzbget/run # Copy local files COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh 92-local_mounts.sh 92-smb_mounts.sh" diff --git a/omada/Dockerfile b/omada/Dockerfile index a32b5fc21..eed7dd215 100644 --- a/omada/Dockerfile +++ b/omada/Dockerfile @@ -42,6 +42,13 @@ RUN echo "Adding symlinks to entrypoint" \ # Copy local files COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh" diff --git a/ombi/Dockerfile b/ombi/Dockerfile index 12bdfc65c..ef71b8389 100644 --- a/ombi/Dockerfile +++ b/ombi/Dockerfile @@ -47,6 +47,13 @@ RUN \ # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh" diff --git a/organizr/Dockerfile b/organizr/Dockerfile index 4b82d20dc..b11a6a049 100644 --- a/organizr/Dockerfile +++ b/organizr/Dockerfile @@ -49,6 +49,13 @@ RUN \ # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh" diff --git a/overseerr/Dockerfile b/overseerr/Dockerfile index 3f8d9d81c..ae3a25dba 100644 --- a/overseerr/Dockerfile +++ b/overseerr/Dockerfile @@ -43,6 +43,13 @@ RUN sed -i "s|/config|/config/addons_config/addons_config/overseerr|g" /etc/serv # Copy local files COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh 92-local_mounts.sh 92-smb_mounts.sh" diff --git a/paperless_ngx/Dockerfile b/paperless_ngx/Dockerfile index 5d00f39f3..b37d278ef 100644 --- a/paperless_ngx/Dockerfile +++ b/paperless_ngx/Dockerfile @@ -49,6 +49,13 @@ RUN \ # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh 92-local_mounts.sh 92-smb_mounts.sh 90-config_yaml.sh" diff --git a/papermerge/Dockerfile b/papermerge/Dockerfile index e2eadc37d..9a6f938ae 100644 --- a/papermerge/Dockerfile +++ b/papermerge/Dockerfile @@ -45,6 +45,13 @@ RUN \ # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh 92-smb_mounts.sh" diff --git a/photoprism/Dockerfile b/photoprism/Dockerfile index 64340aa49..b4762ddf0 100644 --- a/photoprism/Dockerfile +++ b/photoprism/Dockerfile @@ -47,6 +47,13 @@ RUN \ # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh 90-config_yaml.sh 92-local_mounts.sh 92-smb_mounts.sh" diff --git a/piwigo/Dockerfile b/piwigo/Dockerfile index 15140d375..daa6f843b 100644 --- a/piwigo/Dockerfile +++ b/piwigo/Dockerfile @@ -41,6 +41,13 @@ RUN \ # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh 92-local_mounts.sh 92-smb_mounts.sh" diff --git a/plex/Dockerfile b/plex/Dockerfile index 06b814295..444c4f3e6 100644 --- a/plex/Dockerfile +++ b/plex/Dockerfile @@ -57,6 +57,13 @@ RUN \ # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh 92-local_mounts.sh 92-smb_mounts.sh" diff --git a/plex_meta_manager/Dockerfile b/plex_meta_manager/Dockerfile index 8f3a0407c..c0c62d002 100644 --- a/plex_meta_manager/Dockerfile +++ b/plex_meta_manager/Dockerfile @@ -51,6 +51,13 @@ RUN \ # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh 00-global_var.sh" diff --git a/portainer/Dockerfile b/portainer/Dockerfile index 9711624ea..955da8d9f 100644 --- a/portainer/Dockerfile +++ b/portainer/Dockerfile @@ -58,6 +58,13 @@ RUN \ # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh" diff --git a/prowlarr/Dockerfile b/prowlarr/Dockerfile index d2cf6305c..f7cbc8d9e 100644 --- a/prowlarr/Dockerfile +++ b/prowlarr/Dockerfile @@ -45,6 +45,13 @@ RUN \ # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh 92-smb_mounts.sh" diff --git a/qbittorrent/Dockerfile b/qbittorrent/Dockerfile index 4f3f009a8..0e8c773fa 100644 --- a/qbittorrent/Dockerfile +++ b/qbittorrent/Dockerfile @@ -62,6 +62,13 @@ RUN \ # Copy local files COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh 92-local_mounts.sh 92-smb_mounts.sh 90-dns_set.sh" diff --git a/radarr/Dockerfile b/radarr/Dockerfile index 7ddfb7f02..d6a64e51b 100644 --- a/radarr/Dockerfile +++ b/radarr/Dockerfile @@ -45,6 +45,13 @@ RUN \ # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh 92-local_mounts.sh 92-smb_mounts.sh" diff --git a/readarr/Dockerfile b/readarr/Dockerfile index 0053015a0..0b0dab811 100644 --- a/readarr/Dockerfile +++ b/readarr/Dockerfile @@ -43,6 +43,13 @@ RUN sed -i "s|/config|/config/addons_config/radarr/readarr|g" /etc/services.d/re # Copy local files COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh 92-local_mounts.sh 92-smb_mounts.sh" diff --git a/requestrr/Dockerfile b/requestrr/Dockerfile index 8d0940092..215b9ce95 100644 --- a/requestrr/Dockerfile +++ b/requestrr/Dockerfile @@ -44,6 +44,13 @@ RUN \ # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh" diff --git a/resiliosync/Dockerfile b/resiliosync/Dockerfile index 21572b879..5763b2fc6 100644 --- a/resiliosync/Dockerfile +++ b/resiliosync/Dockerfile @@ -58,6 +58,13 @@ RUN \ # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh 92-local_mounts.sh 92-smb_mounts.sh" diff --git a/scrutiny/Dockerfile b/scrutiny/Dockerfile index efd528887..61dfd9712 100644 --- a/scrutiny/Dockerfile +++ b/scrutiny/Dockerfile @@ -50,6 +50,13 @@ RUN \ # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh" diff --git a/scrutiny_fa/Dockerfile b/scrutiny_fa/Dockerfile index 348bb4bdc..c6352cb39 100644 --- a/scrutiny_fa/Dockerfile +++ b/scrutiny_fa/Dockerfile @@ -49,6 +49,13 @@ RUN \ # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh" diff --git a/seafile/Dockerfile b/seafile/Dockerfile index cd6432026..ccbe1788b 100644 --- a/seafile/Dockerfile +++ b/seafile/Dockerfile @@ -37,6 +37,13 @@ ENV LANG C.UTF-8 # Copy local files COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh 92-local_mounts.sh 92-smb_mounts.sh" diff --git a/sonarr/Dockerfile b/sonarr/Dockerfile index 89cdbb028..668538521 100644 --- a/sonarr/Dockerfile +++ b/sonarr/Dockerfile @@ -45,6 +45,13 @@ RUN \ # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh 92-local_mounts.sh 92-smb_mounts.sh" diff --git a/spotweb/Dockerfile b/spotweb/Dockerfile index 270fb8a4f..d9baee8e0 100644 --- a/spotweb/Dockerfile +++ b/spotweb/Dockerfile @@ -85,8 +85,15 @@ RUN apk -U update && \ # 3 Install apps # ################## -# Copy rootfs -COPY rootfs / +# Add rootfs +COPY rootfs/ / + +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi # Modules ARG MODULES="00-banner.sh" diff --git a/tandoor_recipes/Dockerfile b/tandoor_recipes/Dockerfile index a28222403..b86a0baad 100644 --- a/tandoor_recipes/Dockerfile +++ b/tandoor_recipes/Dockerfile @@ -35,6 +35,13 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \ # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh" diff --git a/tdarr/Dockerfile b/tdarr/Dockerfile index f3660b640..2fade50c3 100644 --- a/tdarr/Dockerfile +++ b/tdarr/Dockerfile @@ -34,6 +34,13 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \ # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh 92-local_mounts.sh 92-smb_mounts.sh" diff --git a/teamspeak/Dockerfile b/teamspeak/Dockerfile index 34deea23f..884870765 100644 --- a/teamspeak/Dockerfile +++ b/teamspeak/Dockerfile @@ -40,6 +40,13 @@ VOLUME [ "/data:/var/ts3server/" ] # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh" diff --git a/transmission/Dockerfile b/transmission/Dockerfile index 1a958aabc..38a0fe117 100644 --- a/transmission/Dockerfile +++ b/transmission/Dockerfile @@ -42,6 +42,13 @@ RUN sed -i "s|config|config/transmission|g" /etc/services.d/transmission/run \ # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh 90-dns_set.sh 92-local_mounts.sh 92-smb_mounts.sh " diff --git a/transmission_openvpn/Dockerfile b/transmission_openvpn/Dockerfile index 44282820c..7af984df6 100644 --- a/transmission_openvpn/Dockerfile +++ b/transmission_openvpn/Dockerfile @@ -38,6 +38,13 @@ ENV CREATE_TUN_DEVICE=false # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh 90-dns_set.sh 92-local_mounts.sh 92-smb_mounts.sh " diff --git a/ubooquity/Dockerfile b/ubooquity/Dockerfile index c11a1c66f..f107f9bdc 100644 --- a/ubooquity/Dockerfile +++ b/ubooquity/Dockerfile @@ -52,6 +52,13 @@ RUN \ # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh 92-local_mounts.sh 92-smb_mounts.sh" diff --git a/unpackerr/Dockerfile b/unpackerr/Dockerfile index 5fb3ee15e..6dd7324d4 100644 --- a/unpackerr/Dockerfile +++ b/unpackerr/Dockerfile @@ -31,6 +31,13 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \ # 3 Install apps # ################## +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + ################ # 4 Entrypoint # ################ diff --git a/webtop_kde/Dockerfile b/webtop_kde/Dockerfile index affd6ec77..46742879d 100644 --- a/webtop_kde/Dockerfile +++ b/webtop_kde/Dockerfile @@ -52,6 +52,13 @@ RUN sed -i 's/bash/bashio/g' /etc/cont-init.d/10-adduser \ # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh 92-local_mounts.sh 92-smb_mounts.sh 90-dns_set.sh" diff --git a/webtrees/Dockerfile b/webtrees/Dockerfile index 230d48036..4a0ff6184 100644 --- a/webtrees/Dockerfile +++ b/webtrees/Dockerfile @@ -45,6 +45,13 @@ RUN \ # Add rootfs COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh 90-config_yaml.sh 92-local_mounts.sh 92-smb_mounts.sh 99-custom_script.sh" diff --git a/whoogle/Dockerfile b/whoogle/Dockerfile index 6124878e6..23a64a3d1 100644 --- a/whoogle/Dockerfile +++ b/whoogle/Dockerfile @@ -36,6 +36,13 @@ USER root # Copy local files COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh 00-global_var.sh" diff --git a/xteve/Dockerfile b/xteve/Dockerfile index 2fbd84eee..273d118c1 100644 --- a/xteve/Dockerfile +++ b/xteve/Dockerfile @@ -41,6 +41,13 @@ CMD ["-config", "/data", "-port", "34400"] # Copy local files COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh" diff --git a/zoneminder/Dockerfile b/zoneminder/Dockerfile index d64114c22..9aad2fa98 100644 --- a/zoneminder/Dockerfile +++ b/zoneminder/Dockerfile @@ -42,6 +42,13 @@ RUN sed -i 's|/etc/zm.conf|/config/addons_config/zoneminder/zm.conf|g' /usr/loca # Copy local files COPY rootfs/ / +# Corrects permissions for s6 v3 +RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ + if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi && \ + # Remove linuxserver tamper check that creates new folders at each boot + if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi + # Modules ARG MODULES="00-banner.sh"