mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-04 14:54:07 +02:00
allow scripts usage
This commit is contained in:
@@ -45,6 +45,10 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
# 4 Entrypoint #
|
# 4 Entrypoint #
|
||||||
################
|
################
|
||||||
|
|
||||||
|
RUN chmod 777 /entrypoint.sh
|
||||||
|
ENTRYPOINT [ "/usr/bin/env" ]
|
||||||
|
CMD [ "/entrypoint.sh" ]
|
||||||
|
|
||||||
#RUN chmod 777 /entrypoint.sh
|
#RUN chmod 777 /entrypoint.sh
|
||||||
#WORKDIR /
|
#WORKDIR /
|
||||||
#ENTRYPOINT [ "/usr/bin/env" ]
|
#ENTRYPOINT [ "/usr/bin/env" ]
|
||||||
|
|||||||
16
whoogle/rootfs/entrypoint.sh
Normal file
16
whoogle/rootfs/entrypoint.sh
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo "Starting..."
|
||||||
|
|
||||||
|
####################
|
||||||
|
# Starting scripts #
|
||||||
|
####################
|
||||||
|
|
||||||
|
for SCRIPTS in /scripts/*; do
|
||||||
|
[ -e "$SCRIPTS" ] || continue
|
||||||
|
echo "$SCRIPTS: executing"
|
||||||
|
chown $(id -u):$(id -g) $SCRIPTS
|
||||||
|
chmod a+x $SCRIPTS
|
||||||
|
sed -i 's|/usr/bin/with-contenv bashio|/usr/bin/env bashio|g' $SCRIPTS || true
|
||||||
|
/./$SCRIPTS || echo "$SCRIPTS: exiting $?"
|
||||||
|
done
|
||||||
4
whoogle/rootfs/scripts/99-run.sh
Normal file
4
whoogle/rootfs/scripts/99-run.sh
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
exec misc/tor/start-tor.sh &
|
||||||
|
./run
|
||||||
Reference in New Issue
Block a user