-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate-redis.sh
executable file
·42 lines (34 loc) · 1.63 KB
/
update-redis.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Start Updating Process
echo "Started Update Process - This may take a while to do."
cd
cd .local
cd bin
# Stop Redis Server for update
killall redis-server
echo "Stopped Redis Server For Update"
# Update Files
wget -q https://github.com/Nicsena/redis-server-on-glitch-assets/raw/master/redis-cli -O redis-cli
wget -q https://github.com/Nicsena/redis-server-on-glitch-assets/raw/master/redis-server -O redis-server
wget -q https://raw.githubusercontent.com/Nicsena/redis-server-on-glitch-assets/master/redis.conf -O redis.conf # Anything can change in the conf file if you run this script.
# Update Files - Make Redis Binaries Executable
echo "Update is 50% Completed"
chmod +x redis-cli
chmod +x redis-server
# Update Files - Get Latest Versions of the scripts
cd
wget -q https://raw.githubusercontent.com/Nicsena/redis-server-on-glitch-assets/master/files/install-redis.sh -O install-redis.sh
wget -q https://raw.githubusercontent.com/Nicsena/redis-server-on-glitch-assets/master/files/start-redis.sh -O start-redis.sh
echo "Update is 75% Completed."
chmod +x start-redis.sh
chmod +x install-redis.sh
# Update Files - Redis Configuration
wget -q https://raw.githubusercontent.com/Nicsena/redis-server-on-glitch-assets/master/files/.redis -O .redis # Anything can change in the redis configuration file.
echo "Update is 85% Completed."
# Update Files - Get Latest Version of the Update Script - Project will refresh shortly after
cd /tmp/
# Delete previous update.sh if exists
rm -rf update.sh
wget -q https://raw.githubusercontent.com/Nicsena/redis-server-on-glitch-assets/master/files/update.sh -O update.sh
chmod +x update.sh
bash /tmp/update.sh &
exit 1