Changed accounts folder.

This commit is contained in:
2023-06-22 14:54:38 +02:00
parent c77f90e951
commit 20f0f09e31

View File

@@ -123,15 +123,15 @@ do
then
ip=$(curl -s https://api.ipify.org)
send_webhook "[$host] VPN connection successfully established (IP: $ip).\nStarting script..."
if [ -f "./Microsoft-Rewards-bot/$vpn.json" ]
if [ -f "./accounts/$vpn.json" ]
then
if [ -z "$webhook" ]; then
command_suffix="--accounts-file $vpn.json"
else
if [[ "$print_log_to_webhook" == 1 ]]; then
command_suffix="--accounts-file $vpn.json --discord $webhook --print-to-webhook"
command_suffix="--accounts-file ../accounts/$vpn.json --discord $webhook --print-to-webhook"
else
command_suffix="--accounts-file $vpn.json --discord $webhook"
command_suffix="--accounts-file ../accounts/$vpn.json --discord $webhook"
fi
fi
if grep -q "container=lxc" /proc/1/environ || grep -q "container=lxc-libvirt" /proc/1/environ; then