Skip to content

Instantly share code, notes, and snippets.

@xsoodeh
Last active May 3, 2023 22:23
Show Gist options
  • Save xsoodeh/b05cbfb96e13cc6d66d29c6b80c2582b to your computer and use it in GitHub Desktop.
Save xsoodeh/b05cbfb96e13cc6d66d29c6b80c2582b to your computer and use it in GitHub Desktop.
#!/bin/sh
if [ "$(id -u)" -ne 0 ]; then
echo 'This script must be run by root' >&2
exit 1
fi
echo "we are going to download needed files:)"
GITHUB_REPOSITORY=hiddify-config
GITHUB_USER=xsoodeh
GITHUB_BRANCH_OR_TAG=main
apk update
apk upgrade
apk add --no-cache wget python3 py3-pip dialog unzip
pip3 install lastversion
mkdir -p /opt/$GITHUB_REPOSITORY
cd /opt/$GITHUB_REPOSITORY
wget $(lastversion --at github --assets --filter hiddify-config.zip hiddify/hiddify-config) -O hiddify-config.zip
unzip -o hiddify-config.zip
rm hiddify-config.zip
bash install.sh
echo "/opt/hiddify-config/menu.sh">>~/.bashrc
echo "cd /opt/hiddify-config/">>~/.bashrc
read -p "Press any key to go to menu" -n 1 key
cd /opt/$GITHUB_REPOSITORY
bash menu.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment