diff --git a/amneziawg-install.sh b/amneziawg-install.sh index a09a12d..0db62a1 100644 --- a/amneziawg-install.sh +++ b/amneziawg-install.sh @@ -69,26 +69,26 @@ install_awg_packages() { fi fi - if opkg list-installed | grep -q luci-app-amneziawg; then - echo "luci-app-amneziawg already installed" + if opkg list-installed | grep -q luci-proto-amneziawg; then + echo "luci-proto-amneziawg already installed" else - LUCI_APP_AMNEZIAWG_FILENAME="luci-app-amneziawg${PKGPOSTFIX}" + LUCI_APP_AMNEZIAWG_FILENAME="luci-proto-amneziawg${PKGPOSTFIX}" DOWNLOAD_URL="${BASE_URL}v${VERSION}/${LUCI_APP_AMNEZIAWG_FILENAME}" wget -O "$AWG_DIR/$LUCI_APP_AMNEZIAWG_FILENAME" "$DOWNLOAD_URL" if [ $? -eq 0 ]; then - echo "luci-app-amneziawg file downloaded successfully" + echo "luci-proto-amneziawg file downloaded successfully" else - echo "Error downloading luci-app-amneziawg. Please, install luci-app-amneziawg manually and run the script again" + echo "Error downloading luci-proto-amneziawg. Please, install luci-proto-amneziawg manually and run the script again" exit 1 fi opkg install "$AWG_DIR/$LUCI_APP_AMNEZIAWG_FILENAME" if [ $? -eq 0 ]; then - echo "luci-app-amneziawg file downloaded successfully" + echo "luci-proto-amneziawg file downloaded successfully" else - echo "Error installing luci-app-amneziawg. Please, install luci-app-amneziawg manually and run the script again" + echo "Error installing luci-proto-amneziawg. Please, install luci-proto-amneziawg manually and run the script again" exit 1 fi fi