REPO_URL='https://api.github.com/repos/Slava-Shchipunov/awg-openwrt/releases/latest'

RESPONSE_LIST=$(curl -L -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" $REPO_URL)

for f in $(echo "$RESPONSE_LIST" | grep browser_download | cut -d\" -f4); do wget "$f"; done;

chown -R www-data:www-data *

