changed entrypoint to the make it more bash friendly

This commit is contained in:
Bruvv
2022-01-01 13:57:48 +01:00
parent adaa950eb7
commit 31637b1c41
15 changed files with 76 additions and 91 deletions

View File

@@ -1,5 +1,4 @@
#!/usr/bin/with-contenv bashio
#!/bin/bash
echo "Starting..."
####################
@@ -9,8 +8,8 @@ echo "Starting..."
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 $?"
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

View File

@@ -1,5 +1,4 @@
#!/usr/bin/with-contenv bashio
#!/bin/bash
echo "Starting..."
####################
@@ -9,8 +8,8 @@ echo "Starting..."
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 $?"
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

View File

@@ -1,5 +1,4 @@
#!/usr/bin/with-contenv bashio
#!/bin/bash
echo "Starting..."
####################
@@ -9,8 +8,8 @@ echo "Starting..."
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 $?"
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

View File

@@ -1,5 +1,4 @@
#!/usr/bin/with-contenv bashio
#!/bin/bash
echo "Starting..."
####################
@@ -9,8 +8,8 @@ echo "Starting..."
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 $?"
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

View File

@@ -1,5 +1,4 @@
#!/usr/bin/with-contenv bashio
#!/bin/bash
echo "Starting..."
####################
@@ -9,8 +8,8 @@ echo "Starting..."
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 $?"
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

View File

@@ -1,5 +1,4 @@
#!/usr/bin/with-contenv bashio
#!/bin/bash
echo "Starting..."
####################
@@ -9,8 +8,8 @@ echo "Starting..."
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 $?"
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

View File

@@ -1,5 +1,4 @@
#!/usr/bin/with-contenv bashio
#!/bin/bash
echo "Starting..."
####################
@@ -9,8 +8,8 @@ echo "Starting..."
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 $?"
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

View File

@@ -1,5 +1,4 @@
#!/usr/bin/with-contenv bashio
#!/bin/bash
echo "Starting..."
####################
@@ -9,8 +8,8 @@ echo "Starting..."
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 $?"
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

View File

@@ -1,5 +1,4 @@
#!/usr/bin/with-contenv bashio
#!/bin/bash
echo "Starting..."
####################
@@ -9,8 +8,8 @@ echo "Starting..."
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 $?"
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

View File

@@ -1,5 +1,4 @@
#!/usr/bin/with-contenv bashio
#!/bin/bash
echo "Starting..."
####################
@@ -9,8 +8,8 @@ echo "Starting..."
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 $?"
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

View File

@@ -1,5 +1,4 @@
#!/usr/bin/with-contenv bashio
#!/bin/bash
echo "Starting..."
####################
@@ -9,8 +8,8 @@ echo "Starting..."
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 $?"
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

View File

@@ -1,5 +1,4 @@
#!/usr/bin/with-contenv bashio
#!/bin/bash
echo "Starting..."
####################
@@ -9,8 +8,8 @@ echo "Starting..."
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 $?"
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

View File

@@ -1,5 +1,4 @@
#!/usr/bin/with-contenv bashio
#!/bin/bash
echo "Starting..."
####################
@@ -9,8 +8,8 @@ echo "Starting..."
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 $?"
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

View File

@@ -1,5 +1,4 @@
#!/usr/bin/with-contenv bashio
#!/bin/bash
echo "Starting..."
####################
@@ -9,8 +8,8 @@ echo "Starting..."
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 $?"
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

View File

@@ -1,5 +1,4 @@
#!/usr/bin/with-contenv bashio
#!/bin/bash
echo "Starting..."
####################
@@ -9,8 +8,8 @@ echo "Starting..."
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 $?"
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