Hello everyone, I have create a small bash script for linux that automatically get the latest fivem artifact from the new jgscript artifact website. This small tutorial will help you create the script and a linux service so that you can update and run your server automatically after a server restart.
First create a server.sh file on your server (configure it as you like) :
#!/bin/bash
ARTIFACTS_URL="https://artifacts.jgscripts.com/json"
DOWNLOAD_DIR="/tmp/fivem_artifact"
EXTRACT_DIR="/home/codexis/server"