fix: enable bandwidth shaping after downloading uam

This commit is contained in:
Tha14 2023-01-06 17:47:40 +02:00
parent d6ae0cd436
commit 8c43a023c3
No known key found for this signature in database
GPG Key ID: C2B875C3A9D53CFC
2 changed files with 2 additions and 2 deletions

View File

@ -2,11 +2,11 @@
cd /tmp cd /tmp
apt update && apt -yq install wget libglib2.0-0 ca-certificates dnsmasq wondershaper apt update && apt -yq install wget libglib2.0-0 ca-certificates dnsmasq wondershaper
update-ca-certificates update-ca-certificates
wondershaper eth0 $3 $4 &
wget https://update.u.is/downloads/uam/linux/uam-latest_amd64.deb wget https://update.u.is/downloads/uam/linux/uam-latest_amd64.deb
dpkg -i uam-latest_amd64.deb dpkg -i uam-latest_amd64.deb
cd /opt/uam/ cd /opt/uam/
echo "[net]" >> /root/.uam/uam.ini echo "[net]" >> /root/.uam/uam.ini
container_ip="$(hostname -i)" container_ip="$(hostname -i)"
echo "listens=[${container_ip}]:$2" >> /root/.uam/uam.ini echo "listens=[${container_ip}]:$2" >> /root/.uam/uam.ini
wondershaper eth0 $3 $4 &
./uam --pk $1 --http [0.0.0.0]:17099 --no-ui ./uam --pk $1 --http [0.0.0.0]:17099 --no-ui

View File

@ -2,11 +2,11 @@
cd /tmp cd /tmp
apt update && apt -yq install wget libglib2.0-0 ca-certificates dnsmasq wondershaper apt update && apt -yq install wget libglib2.0-0 ca-certificates dnsmasq wondershaper
update-ca-certificates update-ca-certificates
wondershaper eth0 $2 $3 &
wget https://update.u.is/downloads/uam/linux/uam-latest_amd64.deb wget https://update.u.is/downloads/uam/linux/uam-latest_amd64.deb
dpkg -i uam-latest_amd64.deb dpkg -i uam-latest_amd64.deb
cd /opt/uam/ cd /opt/uam/
echo "[net]" >> /root/.uam/uam.ini echo "[net]" >> /root/.uam/uam.ini
container_ip="$(hostname -i)" container_ip="$(hostname -i)"
echo "listens=[${container_ip}]:4156" >> /root/.uam/uam.ini echo "listens=[${container_ip}]:4156" >> /root/.uam/uam.ini
wondershaper eth0 $2 $3 &
./uam --pk $1 --http [0.0.0.0]:17099 --no-ui ./uam --pk $1 --http [0.0.0.0]:17099 --no-ui