mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 05:44:03 +02:00
Update 01-custom_script.sh
This commit is contained in:
@@ -11,14 +11,11 @@ if [ -f /config/"${slug}".sh ]; then
|
|||||||
mv -f /config/"${slug}".sh /config/addons_autoscripts/"${slug}".sh
|
mv -f /config/"${slug}".sh /config/addons_autoscripts/"${slug}".sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Convert scripts to linux
|
|
||||||
if [ -f /usr/bin/dos2unix ]; then
|
|
||||||
dos2unix /config/addons_autoscripts/"${slug}".sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Execute scripts
|
# Execute scripts
|
||||||
if [ -f /config/addons_autoscripts/"${slug}".sh ]; then
|
if [ -f /config/addons_autoscripts/"${slug}".sh ]; then
|
||||||
bashio::log.info "... script found, executing"
|
bashio::log.info "... script found, executing"
|
||||||
|
# Convert scripts to linux
|
||||||
|
dos2unix /config/addons_autoscripts/"${slug}".sh
|
||||||
chmod +x /config/addons_autoscripts/"${slug}".sh
|
chmod +x /config/addons_autoscripts/"${slug}".sh
|
||||||
/./config/addons_autoscripts/"${slug}".sh
|
/./config/addons_autoscripts/"${slug}".sh
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user