forked from Twe3x/fivem-installer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate.sh
More file actions
45 lines (33 loc) · 745 Bytes
/
Copy pathupdate.sh
File metadata and controls
45 lines (33 loc) · 745 Bytes
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
43
44
45
#!/bin/bash
red="$(tput setaf 1)"
yellow="$(tput setaf 3)"
green="$(tput setaf 2)"
nc="$(tput sgr0)"
dir=/home/FiveM/server
if [ -e /home/FiveM/ ]
then
echo "${red}Deleting ${nc}alpine"
sleep 1
rm -rf $dir/alpine
clear
echo "${red}Deleting ${nc}run.sh"
sleep 1
rm -rf $dir/run.sh
clear
echo "Downloading ${yellow}fx.tar.xz${nc}"
wget --directory-prefix=$dir $1
echo "${green}Success${nc}"
sleep 1
clear
echo "Unpacking ${yellow}fx.tar.xz${nc}"
tar xf $dir/fx.tar.xz -C $dir
echo "${green}Success${nc}"
sleep 1
clear
rm -r $dir/fx.tar.xz
echo "${red}Deleting ${nc}fx.tar.xz"
sleep 1
clear
else
printf "${red} ERROR: The directory /home/FiveM/ does not exist (Please install txAdmin)"
fi