mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +01:00
Ensure permissions
This commit is contained in:
@@ -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 #
|
||||
################
|
||||
|
||||
@@ -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
0
qbittorrent/rootfs/usr/local/bin/resolvconf
Normal file → Executable file
0
qbittorrent/rootfs/usr/local/sbin/ip6tables-restore
Normal file → Executable file
0
qbittorrent/rootfs/usr/local/sbin/ip6tables-restore
Normal file → Executable file
0
qbittorrent/rootfs/usr/local/sbin/iptables-restore
Normal file → Executable file
0
qbittorrent/rootfs/usr/local/sbin/iptables-restore
Normal file → Executable file
0
qbittorrent/rootfs/usr/local/sbin/sysctl
Normal file → Executable file
0
qbittorrent/rootfs/usr/local/sbin/sysctl
Normal file → Executable file
Reference in New Issue
Block a user