mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-04 08:04:57 +02:00
First build https://github.com/alexbelgium/hassio-addons/issues/840 https://github.com/alexbelgium/hassio-addons/issues/565
This commit is contained in:
16
portainer_agent/rootfs/entrypoint.sh
Normal file
16
portainer_agent/rootfs/entrypoint.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
echo "Starting..."
|
||||
|
||||
####################
|
||||
# Starting scripts #
|
||||
####################
|
||||
|
||||
for SCRIPTS in /etc/cont-init.d/*; do
|
||||
[ -e "$SCRIPTS" ] || continue
|
||||
echo "$SCRIPTS: executing"
|
||||
chown "$(id -u)":"$(id -g)" "$SCRIPTS"
|
||||
chmod a+x "$SCRIPTS"
|
||||
# Change shebang if no s6 supervision
|
||||
sed -i 's|/usr/bin/with-contenv bashio|/usr/bin/env bashio|g' "$SCRIPTS"
|
||||
/."$SCRIPTS" || echo "$SCRIPTS: exiting $?"
|
||||
done
|
||||
12
portainer_agent/rootfs/etc/cont-init.d/99-run.sh
Normal file
12
portainer_agent/rootfs/etc/cont-init.d/99-run.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
# ==============================================================================
|
||||
# Home Assistant Community Add-on: portainer_agent
|
||||
# Runs some initializations for portainer_agent
|
||||
# ==============================================================================
|
||||
bashio::require.unprotected
|
||||
|
||||
# Set environemnt
|
||||
|
||||
# Launch app
|
||||
./agent
|
||||
Reference in New Issue
Block a user