forked from johnnypernik/FiveMArtifactsUpdater
-
Notifications
You must be signed in to change notification settings - Fork 0
/
update.sh
34 lines (33 loc) · 970 Bytes
/
update.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
#!/bin/bash
#manually
echo "Hello, lets update your FiveM Artifact!"
echo
echo "https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/"
echo
read -p "Please paste the direct URL from LATEST RECOMMENDED " url
echo
echo "Got it! Check URL and confirm with enter or abort with CTR+C: "
echo
read -p "$url " -n 1 -r
echo
echo "Starting update ..."
echo
echo "Try now to close FiveM with default script screen Name: txAdmin"
screen -S txAdmin -p 0 -X quit
echo
curl -O "${url}"
echo
mkdir -p backup
mv alpine backup/"$(date +"%d-%m-%y")"-alpine && mv run.sh backup/"$(date +"%d-%m-%y")"-run.sh
tar xf fx.tar.xz
echo
rm fx.tar.xz
echo
echo "Update done!"
echo
read -p "Press Enter to confirm screen start and close after check with CTR A+D script will be exit with that to" -n 1 -r
echo
echo "Starting now FiveM with default script screen Name: txAdmin"
echo
echo "All done - Happy Playing! Made with love by cfx zatu22"
screen -S txAdmin bash run.sh; exec bash