Hello!
While looking for an automatic FiveM Artifact updater script, I didn’t find anything here. That’s why I created a simple bash file with which you can update your server in under a minute and save you valuable lifetime
Linux only:
Features
- update from URL
- automatically updates every week via cronjob
- fivem is automatically stopped via screen before the update starts
- fivem is automatically restarted with screen after the update
- backups are created with a time stamp in a separate folder
How it works
linux Update.sh:
- Copy update.sh to your server where alpine and run.sh is located
- Close fivem & screen (when screen name is not txAdmin)
- bash update.sh
- follow instruction
You can run update.sh at anytime again, screen get automatically closed and reopen after update and you will always have a backup of last artifact version in backup folder
linux cronjobupdate.sh: (No interaction necessary - always fetch LATEST OPTIONAL)
-
Copy cronjobupdate.sh to your server where alpine and run.sh is located
-
Close fivem & screen (when screen name is not txAdmin)
-
bash cronjobupdate.sh
Run update automatically: -
crontab -l | { cat; echo "30_4_*_*_0 /bin/bash "path/to/server/cronjobupdate.sh""; } | crontab -
-
(optional) enable log in cronjobupdate.sh
-
Every Sunday 4.30am update starts automatically
Download
FiveMArtifactsUpdater
Picture
