-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall-up.sh
27 lines (24 loc) · 1.45 KB
/
install-up.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
dateFromServer=$(curl -v --insecure --silent https://google.com/ 2>&1 | grep Date | sed -e 's/< Date: //')
biji=`date +"%Y-%m-%d" -d "$dateFromServer"`
###########- COLOR CODE -##############
colornow=$(cat /etc/alexxa/theme/color.conf)
export NC="\e[0m"
export YELLOW='\033[0;33m';
export RED="\033[0;31m"
export COLOR1="$(cat /etc/alexxa/theme/$colornow | grep -w "TEXT" | cut -d: -f2|sed 's/ //g')"
export COLBG1="$(cat /etc/alexxa/theme/$colornow | grep -w "BG" | cut -d: -f2|sed 's/ //g')"
###########- END COLOR CODE -##########
echo -e "$COLOR1│${NC} $COLOR1[INFO]${NC} Remove Old Script"
rm /root/install-up.sh
rm /usr/bin/menu-bot
sleep 2
echo -e "$COLOR1│${NC} $COLOR1[INFO]${NC} Downloading New Script"
#wget -q -O /usr/bin/FILENAME "https://raw.githubusercontent.com/Acelrrh/update/master/update_file/FILENAME" && chmod +x /usr/bin/FILENAME
wget -q -O /usr/bin/menu-bot "https://raw.githubusercontent.com/Acelrrh/update/master/update_file/menu-bot.sh" && chmod +x /usr/bin/menu-bot
wget -q -O /usr/bin/menu "https://raw.githubusercontent.com/Acelrrh/update/master/update_file/menu.sh" && chmod +x /usr/bin/menu.sh
sleep 2
echo -e "$COLOR1│${NC} $COLOR1[INFO]${NC} Download Changelog File"
wget -q -O /root/changelog.txt "https://raw.githubusercontent.com/Acelrrh/update/master/update_file/changelog.txt" && chmod +x /root/changelog.txt
echo -e "$COLOR1│${NC} $COLOR1[INFO]${NC} Read Changelog? ./root/changelog.txt"
sleep 2