uam-docker/uam/entrypoint.sh

15 lines
467 B
Bash
Raw Normal View History

#!/bin/bash
2022-12-01 18:32:20 +01:00
cd /tmp
apt update && apt -yq install wget libglib2.0-0 ca-certificates dnsmasq wondershaper
2022-12-08 08:45:28 +01:00
update-ca-certificates
2022-12-01 18:32:20 +01:00
wget https://update.u.is/downloads/uam/linux/uam-latest_amd64.deb
dpkg -i uam-latest_amd64.deb
cd /opt/uam/
echo "[net]" >> /root/.uam/uam.ini
container_ip="$(hostname -i)"
echo "listens=[${container_ip}]:4156" >> /root/.uam/uam.ini
if [[ "$4" == "true" ]]; then
wondershaper eth0 $2 $3 &
fi
./uam --pk $1 --http [0.0.0.0]:17099 --no-ui