2022-12-13 19:28:55 +01:00
|
|
|
#!/bin/sh
|
|
|
|
cd /tmp
|
2022-12-29 14:23:46 +01:00
|
|
|
apt update && apt -yq install wget libglib2.0-0 ca-certificates dnsmasq wondershaper
|
2022-12-13 19:28:55 +01:00
|
|
|
update-ca-certificates
|
2022-12-29 14:23:46 +01:00
|
|
|
wondershaper eth0 $3 $4 &
|
2022-12-13 19:28:55 +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)"
|
2022-12-20 15:39:37 +01:00
|
|
|
echo "listens=[${container_ip}]:$2" >> /root/.uam/uam.ini
|
2022-12-13 19:28:55 +01:00
|
|
|
./uam --pk $1 --http [0.0.0.0]:17099 --no-ui
|