2021-04-19 12:56:18 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
INTERFACE="${INTERFACE:-innernet}"
|
2024-04-18 13:55:43 +00:00
|
|
|
|
2021-05-21 05:22:43 +00:00
|
|
|
innernet $INNERNET_ARGS install \
|
2021-04-19 12:56:18 +00:00
|
|
|
--name "$INTERFACE" \
|
|
|
|
--delete-invite \
|
|
|
|
--no-write-hosts \
|
|
|
|
/app/invite.toml
|
|
|
|
|
|
|
|
while true; do
|
2024-04-18 13:55:43 +00:00
|
|
|
if [[ $CLIENT_ARGS =~ --verbose ]]; then
|
|
|
|
innernet $INNERNET_ARGS up --no-write-hosts "$INTERFACE"
|
|
|
|
else
|
|
|
|
innernet $INNERNET_ARGS up --no-write-hosts "$INTERFACE" > /dev/null
|
|
|
|
fi
|
2021-04-19 12:56:18 +00:00
|
|
|
sleep 1
|
|
|
|
done
|