mirror of
https://github.com/vdm-io/dynamic-ip.git
synced 2024-12-05 00:33:13 +00:00
trying to fix the pause
This commit is contained in:
parent
b235d1e7e0
commit
5d35a19bf2
3
setip.sh
3
setip.sh
@ -23,6 +23,7 @@ VDMIPSERVER="https://www.vdm.io/setip"
|
|||||||
|
|
||||||
# Require script to be run via sudo, but not as root
|
# Require script to be run via sudo, but not as root
|
||||||
if [[ $EUID -ne 0 ]]; then
|
if [[ $EUID -ne 0 ]]; then
|
||||||
|
|
||||||
echo "Script must be run with root privilages!"
|
echo "Script must be run with root privilages!"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@ -68,7 +69,7 @@ serverKey=$(<"$VDMHOME/ip.key")
|
|||||||
accessToke=$(curl -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.89 Safari/537.36" --silent --data-urlencode "key=$serverKey" $VDMIPSERVER)
|
accessToke=$(curl -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.89 Safari/537.36" --silent --data-urlencode "key=$serverKey" $VDMIPSERVER)
|
||||||
|
|
||||||
if [[ "$accessToke" != "$TRUE" ]]; then
|
if [[ "$accessToke" != "$TRUE" ]]; then
|
||||||
read -s -p "Please enter your VDM access key: " vdmAccessKey
|
read -n 1 -s -p "Please enter your VDM access key: " vdmAccessKey
|
||||||
echo
|
echo
|
||||||
echo -n "One moment while we set your access to the VDM system..."
|
echo -n "One moment while we set your access to the VDM system..."
|
||||||
resultAccess=$(curl -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.89 Safari/537.36" --silent --data-urlencode "trust=$vdmAccessKey" --data-urlencode "key=$serverKey" $VDMIPSERVER)
|
resultAccess=$(curl -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.89 Safari/537.36" --silent --data-urlencode "trust=$vdmAccessKey" --data-urlencode "key=$serverKey" $VDMIPSERVER)
|
||||||
|
Loading…
Reference in New Issue
Block a user