Clean run.sh code

This commit is contained in:
Alexandre
2021-10-24 17:55:16 +02:00
parent ae07369890
commit cc1a9c485b
3 changed files with 15 additions and 13 deletions

View File

@@ -4,12 +4,13 @@
# SCRIPTS #
###########
for SCRIPTS in "/00-banner.sh" "/92-local_mounts.sh" "/92-smb_mounts.sh"
do
for SCRIPTS in "/00-banner.sh" "/92-local_mounts.sh" "/92-smb_mounts.sh"; do
echo $SCRIPTS
chown $(id -u):$(id -g) $SCRIPTS
chmod a+x $SCRIPTS
sed -i 's|/usr/bin/with-contenv bashio|/usr/bin/env bashio|g' $SCRIPTS
/.$SCRIPTS & true # Prevents script crash on failure
/.$SCRIPTS &
true # Prevents script crash on failure
done
#################

View File

@@ -4,12 +4,13 @@
# SCRIPTS #
###########
for SCRIPTS in "/00-banner.sh" "/92-local_mounts.sh" "/92-smb_mounts.sh"
do
for SCRIPTS in "/00-banner.sh" "/92-local_mounts.sh" "/92-smb_mounts.sh"; do
echo $SCRIPTS
chown $(id -u):$(id -g) $SCRIPTS
chmod a+x $SCRIPTS
sed -i 's|/usr/bin/with-contenv bashio|/usr/bin/env bashio|g' $SCRIPTS
/.$SCRIPTS & true # Prevents script crash on failure
/.$SCRIPTS &
true # Prevents script crash on failure
done
###################

View File

@@ -1,16 +1,16 @@
#!/usr/bin/env bashio
bashio::log.warning "Warning - minimum configuration recommended : 2 cpu cores and 4 GB of memory"
###########
# SCRIPTS #
###########
for SCRIPTS in "00-banner.sh" "92-local_mounts.sh" "92-smb_mounts.sh"
chown $(id -u):$(id -g) /$SCRIPTS
chmod a+x /$SCRIPTS
sed -i 's|/usr/bin/with-contenv bashio|/usr/bin/env bashio|g' /$SCRIPTS
/./$SCRIPTS & true # Prevents script crash on failure
for SCRIPTS in "/00-banner.sh" "/92-local_mounts.sh" "/92-smb_mounts.sh"; do
echo $SCRIPTS
chown $(id -u):$(id -g) $SCRIPTS
chmod a+x $SCRIPTS
sed -i 's|/usr/bin/with-contenv bashio|/usr/bin/env bashio|g' $SCRIPTS
/.$SCRIPTS &
true # Prevents script crash on failure
done
##############