[RELEASE] FiveM Artifact Auto Update Script Manually and Automatically

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 :crazy_face:

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
one


three

4 Likes

Changelog:

  • Added Cronjob.sh (No interaction script, automatically weekly update from LATEST OPTIONAL)
1 Like

You do know that your update script has nothing to do with txAdmin? What you are updating is the FiveM builds also know as artifacts. txAdmin is built into fxserver so I do see where the mistake could be made.

1 Like

Thank you! Wrong way of thinking of mine because I get updates through txadmin discord channel but it’s still artifacts not txadmin. Will rename everything😅

1 Like