Update init.sh

This commit is contained in:
Bkeenke 2024-04-30 01:05:56 +03:00 committed by GitHub
parent 61a5c915ae
commit 3bab4a0b5b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -158,6 +158,7 @@ install_encode_file() {
if [ ! -f /etc/amnezia/amneziawg/encode.py ]; then if [ ! -f /etc/amnezia/amneziawg/encode.py ]; then
colorized_echo blue "Downloading encode.py" colorized_echo blue "Downloading encode.py"
wget -O- https://raw.githubusercontent.com/bkeenke/awg-manager/master/encode.py > /etc/amnezia/amneziawg/encode.py wget -O- https://raw.githubusercontent.com/bkeenke/awg-manager/master/encode.py > /etc/amnezia/amneziawg/encode.py
pip3 install PyQt6
if [ ! -f /etc/amnezia/amneziawg/encode.py ]; then if [ ! -f /etc/amnezia/amneziawg/encode.py ]; then
colorized_echo red "encode.py not found" colorized_echo red "encode.py not found"
exit 1 exit 1
@ -176,6 +177,7 @@ install_init_awg_manager() {
chmod 700 ./awg-manager.sh chmod 700 ./awg-manager.sh
./awg-manager.sh -i -s $(curl https://ipinfo.io/ip) -I $(ip route | awk '/default/ { print $5 }') ./awg-manager.sh -i -s $(curl https://ipinfo.io/ip) -I $(ip route | awk '/default/ { print $5 }')
./awg-manager.sh -u system -c ./awg-manager.sh -u system -c
./awg-manager.sh -u system -d
fi fi
} }
case "$1" in case "$1" in