mirror of
https://github.com/unifi-utilities/unifios-utilities.git
synced 2024-08-30 18:32:21 +00:00
5882b0e5d0
* Update 10-dns.sh Updated the cni plugin to resolve some issues with vlans. * Update install-cni-plugins.sh Updated cni plugin version to later version to resolve clan issues with some containers. * Update 25-homebridge.sh Updated cni plugin version to resolve clan issues. * Delete 10-dns.sh * Delete install-cni-plugins.sh * Create install-cni-plugins.sh * Delete install-cni-plugins.sh * Create 15-test.sh * Support caching in install-cni-plugins.sh (#114) * Support caching in install-cni-plugins.sh * Update README Conflicts: dns-common/on_boot.d/10-dns.sh * removed unused file Co-authored-by: Adam Bolsover <bowseruk@users.noreply.github.com>
32 lines
851 B
Bash
Executable File
32 lines
851 B
Bash
Executable File
#!/bin/sh
|
|
CONTAINER=homebridge
|
|
|
|
## network configuration and startup:
|
|
CNI_PATH=/mnt/data/podman/cni
|
|
if [ ! -f "$CNI_PATH"/tuning ]; then
|
|
mkdir -p $CNI_PATH
|
|
curl -L https://github.com/containernetworking/plugins/releases/download/v0.9.1/cni-plugins-linux-arm64-v0.9.1.tgz | tar -xz -C $CNI_PATH
|
|
fi
|
|
|
|
mkdir -p /opt/cni
|
|
rm -f /opt/cni/bin
|
|
ln -s $CNI_PATH /opt/cni/bin
|
|
|
|
for file in "$CNI_PATH"/*.conflist
|
|
do
|
|
if [ -f "$file" ]; then
|
|
ln -s "$file" "/etc/cni/net.d/$(basename "$file")"
|
|
fi
|
|
done
|
|
|
|
|
|
# Starts the homebridge container on boot.
|
|
# All configs stored in /mnt/data/homebridge
|
|
|
|
if podman container exists ${CONTAINER}; then
|
|
podman start ${CONTAINER}
|
|
else
|
|
logger -s -t homebridge -p ERROR Container $CONTAINER not found, make sure you set the proper name, you can ignore this error if it is your first time setting it up
|
|
fi
|
|
|