<aside> ⚠️ This shouldn't be confused with our Minecraft Modpack Manager or Plugin Manager. The aforementioned systems are fully automated, and you don't need to add modpacks or plugins to them manually.
</aside>
The "mod manager" will run a bash script provided to it. This allows you to do something simple like downloading and unpacking an archive into the server directory, or something more advanced like pulling the latest version of a mod from GitHub, or mounting a shared directory for content in games like Garry's Mod. Below are some example use cases, but you can do pretty much anything you might need to with a little bash.
The install script is responsible for downloading files and making necessary changes, while the uninstall script would revert all the changes.
Mod Manager can be found in the Admin Panel, under 1) Service Management → 2) Mods.
Users can find the Mod Manager in their server by going to their server and in the left menu selecting Tools → Mod Manager. It is only visible when there’s a mod created for the egg a server is using.
<aside>
⚠️ The working directory is /mnt/server
inside the mod manager container.
</aside>
#!/bin/bash
mkdir -p /mnt/server/garrysmod/addons
cd /mnt/server/garrysmod/addons
rm -r some_folder_name
wget <https://some.website/file.zip>
unzip file.zip -d some_folder_name
Installing DarkRP from GitHub to the gamemodes folder:
#!/bin/bash
mkdir -p /mnt/server/garrysmod/gamemodes
cd /mnt/server/garrysmod/gamemodes
rm -r darkrp
git clone <https://github.com/FPtje/DarkRP.git> darkrp
You can do pretty much anything with bash, this even includes writing your own files!
#!/bin/bash
cd /mnt/server/garrysmod/addons/my_epic_addon
echo "print('hello world')
print('we can even new line')
if(using_wisp == true) then
return cool
else
return not_cool
end" > file.lua