Ensure permissions

This commit is contained in:
Alexandre
2025-11-19 08:08:24 +00:00
parent 91b20ae5e0
commit 9f85d6553e
6 changed files with 5 additions and 12 deletions

View File

@@ -84,7 +84,10 @@ RUN \
ln -sf python3 /usr/bin/python && \
apk add --no-cache py3-pip gcc musl-dev && \
cd /qbit_manage && \
pip3 install --break-system-packages --user .
pip3 install --break-system-packages --user . && \
\
# Ensure permissions
chmod +x /usr/local/sbin/* /usr/local/bin/*
##################
# 3 Install apps #
@@ -104,12 +107,6 @@ ARG MODULES="00-banner.sh 01-custom_script.sh 00-local_mounts.sh 00-smb_mounts.s
ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_automodules.sh" "/ha_automodules.sh"
RUN chmod 744 /ha_automodules.sh && /ha_automodules.sh "$MODULES" && rm /ha_automodules.sh
#RUN if [ -f /etc/s6-overlay/s6-rc.d/init-adduser ]; then for SCRIPTS in /etc/cont-init.d/*; do [ -e "$SCRIPTS" ] || continue \
# && mkdir -p /abscripts && sed -i 's|/usr/bin/with-contenv bashio|/usr/bin/env bashio|g' "$SCRIPTS" \
# && SCRIPTSNAME="$(basename "$SCRIPTS")" && mkdir /etc/s6-overlay/s6-rc.d/"$SCRIPTSNAME" && mv "$SCRIPTS" /etc/s6-overlay/s6-rc.d/"$SCRIPTSNAME"/run \
# && echo "oneshot" > /etc/s6-overlay/s6-rc.d/"$SCRIPTSNAME"/type && echo "/etc/s6-overlay/s6-rc.d/$SCRIPTSNAME/run" > /etc/s6-overlay/s6-rc.d/"$SCRIPTSNAME"/up \
# && chmod a+x /etc/s6-overlay/s6-rc.d/$SCRIPTSNAME/* ; done; fi
# Manual apps
ARG PACKAGES="wireguard-tools iptables ip6tables"
@@ -117,10 +114,6 @@ ARG PACKAGES="wireguard-tools iptables ip6tables"
ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_autoapps.sh" "/ha_autoapps.sh"
RUN chmod 744 /ha_autoapps.sh && /ha_autoapps.sh "$PACKAGES" && rm /ha_autoapps.sh
# Switch scripts from s6 v2 to v3
#RUN if [ -f /etc/s6-overlay/s6-rc.d/init-custom-file/run ]; then mkdir "/custom-cont-init.d" && for SCRIPTS in /etc/cont-init.d/*; do [ -e "$SCRIPTS" ] || continue \
# && mv "$SCRIPTS" /custom-cont-init.d && chmod a+x /custom-cont-init.d/*; done; fi
################
# 4 Entrypoint #
################

View File

@@ -145,4 +145,4 @@ schema:
slug: qbittorrent
udev: true
url: https://github.com/alexbelgium/hassio-addons
version: 5.1.2-9
version: 5.1.2-10

0
qbittorrent/rootfs/usr/local/bin/resolvconf Normal file → Executable file
View File

0
qbittorrent/rootfs/usr/local/sbin/ip6tables-restore Normal file → Executable file
View File

0
qbittorrent/rootfs/usr/local/sbin/iptables-restore Normal file → Executable file
View File

0
qbittorrent/rootfs/usr/local/sbin/sysctl Normal file → Executable file
View File