Skip to content

Commit 241d3bb

Browse files
authored
Update update.sh
1 parent a48b2ef commit 241d3bb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

update.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ do
4747

4848
bot_token=$(cat /var/www/html/wizwizxui-timebot/baseInfo.php | grep '$botToken' | cut -d"'" -f2)
4949
bot_token2=$(cat /var/www/html/wizwizxui-timebot/baseInfo.php | grep '$botToken' | cut -d'"' -f2)
50-
bot_url=$(cat /var/www/html/wizwizxui-timebot/baseInfo.php | grep '$botUrl' | cut -d'"' -f2)
50+
bot_url=$(cat /var/www/html/wizwizxui-timebot/baseInfo.php | grep '$botUrl' | cut -d'"' -d"'" -f2)
5151

5252
filepath="/var/www/html/wizwizxui-timebot/baseInfo.php"
5353

@@ -133,6 +133,7 @@ do
133133
echo -e "\n\e[92mUpdating ...\033[0m\n"
134134

135135
bot_token=$(cat /var/www/html/wizwizxui-timebot/baseInfo.php | grep '$botToken' | cut -d"'" -f2)
136+
bot_token2=$(cat /var/www/html/wizwizxui-timebot/baseInfo.php | grep '$botToken' | cut -d'"' -f2)
136137

137138
filepath="/var/www/html/wizwizxui-timebot/baseInfo.php"
138139

@@ -141,6 +142,7 @@ do
141142
MESSAGE="🕹 WizWiz panel has been successfully updated!"
142143

143144
curl -s -X POST "https://api.telegram.org/bot${bot_token}/sendMessage" -d chat_id="${bot_value}" -d text="$MESSAGE"
145+
curl -s -X POST "https://api.telegram.org/bot${bot_token2}/sendMessage" -d chat_id="${bot_value}" -d text="$MESSAGE"
144146

145147
sleep 1
146148

@@ -214,7 +216,7 @@ do
214216

215217
wait
216218

217-
BOT_TOKEN=$(cat /var/www/html/wizwizxui-timebot/baseInfo.php | grep '$botToken' | cut -d"'" -f2)
219+
BOT_TOKEN=$(cat /var/www/html/wizwizxui-timebot/baseInfo.php | grep '$botToken' | cut -d'"' -d"'" -f2)
218220
ROOT_USER=$(cat /var/www/html/wizwizxui-timebot/baseInfo.php | grep '$dbUserName' | cut -d"'" -f2)
219221
ROOT_PASSWORD=$(cat /var/www/html/wizwizxui-timebot/baseInfo.php | grep '$dbPassword' | cut -d"'" -f2)
220222
BOT_URL=$(cat /var/www/html/wizwizxui-timebot/baseInfo.php | grep '$botUrl' | cut -d'"' -f2)

0 commit comments

Comments
 (0)