mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
test
This commit is contained in:
@@ -64,12 +64,13 @@ RUN \
|
||||
if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \
|
||||
if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \
|
||||
#Correct shebang in entrypoint
|
||||
for shebang in "/command/with-contenv bashio" "/usr/bin/env bashio" "/usr/bin/bashio" "/bin/bash" "/bin/sh"; do if [ -f "${shebang%% *}" ]; then break; fi; done; sed -i "s|/command/with-contenv bashio|$shebang|g" /ha_entrypoint.sh
|
||||
for shebang in "/command/with-contenv bashio" "/usr/bin/env bashio" "/usr/bin/bashio" "/bin/bash" "/bin/sh"; do if [ -f "${shebang%% *}" ]; then break; fi; done; sed -i "s|/command/with-contenv bashio|$shebang|g" /ha_entrypoint.sh && \
|
||||
echo "Shebang is $shebang"
|
||||
|
||||
# Entrypoint logic
|
||||
|
||||
#WORKDIR /
|
||||
ENTRYPOINT [ "/usr/bin/env" ]
|
||||
ENTRYPOINT [ "/ha_entrypoint.sh" ]
|
||||
CMD [ "/ha_entrypoint.sh" ]
|
||||
# Set shell
|
||||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||
|
||||
@@ -31,5 +31,5 @@
|
||||
},
|
||||
"slug": "test",
|
||||
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/addons_updater",
|
||||
"version": "test3"
|
||||
"version": "test4"
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
#!/usr/bin/env bashio
|
||||
#!/bin/bash
|
||||
# shellcheck shell=bash
|
||||
echo "nearly"
|
||||
|
||||
bashio::log.info "It's working"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user