mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-24 06:50:32 +02:00
Update 99-run.sh
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/env bashio
|
#!/usr/bin/env bashio
|
||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
|
# shellcheck disable=SC2155
|
||||||
|
|
||||||
###################################
|
###################################
|
||||||
# Export all addon options as env #
|
# Export all addon options as env #
|
||||||
@@ -28,7 +29,7 @@ for KEYS in "${arr[@]}"; do
|
|||||||
export "${KEYS}=${VALUE//[\"\']/}"
|
export "${KEYS}=${VALUE//[\"\']/}"
|
||||||
# Export the variable to run scripts
|
# Export the variable to run scripts
|
||||||
sed -i "1a export $line" /home/seafile/*.sh 2>/dev/null
|
sed -i "1a export $line" /home/seafile/*.sh 2>/dev/null
|
||||||
find /opt/seafile -name *.sh | xargs sed -i "1a export $line"
|
find /opt/seafile -name '*.sh' -print0 | xargs -0 sed -i "1a export $line"
|
||||||
done
|
done
|
||||||
|
|
||||||
#################
|
#################
|
||||||
|
|||||||
Reference in New Issue
Block a user