forked ssh and installed tinc
This commit is contained in:
16
tinc/rootfs/etc/cont-init.d/apks.sh
Normal file
16
tinc/rootfs/etc/cont-init.d/apks.sh
Normal file
@ -0,0 +1,16 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# ==============================================================================
|
||||
# SSH install additional packages on startup
|
||||
# ==============================================================================
|
||||
|
||||
if ! bashio::config.has_value "apks"; then
|
||||
bashio::exit.ok
|
||||
fi
|
||||
|
||||
apk update \
|
||||
|| bashio::exit.nok "Failed updating Alpine packages indexes"
|
||||
|
||||
for package in $(bashio::config "apks"); do
|
||||
apk add "$package" \
|
||||
|| bashio::exit.nok "Failed installing ${package}"
|
||||
done
|
||||
Reference in New Issue
Block a user