Skip to content

Role to update server using provided zip folder containing new files.

License

Notifications You must be signed in to change notification settings

matthew-williams/minecraft-update.role

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minecraft Update-Role

=========

This role runs the bash script in ./files that can either backup, restore, or backup, install new package, and the restore backups to a new install of forge modpacks.

Requirements


  • Curse provided .zip server modpack files
  • access to create files in /tmp
  • access to sudo for rsync and file deletion

Dependencies


  • unzip

Usage


Currently the role tasks do not function but the bash script does. You can run it manually using command below:

Backup only:

sudo bash ~/minecraftupdate.sh --pack-path /opt/minecraft/PO3/ -b

Installation of a new updated pack version:

sudo bash ~/minecraftupdate.sh --pack-path /opt/minecraft/CrackPack3/ -n Eternal+\(Server+Pack+1.3.3\).zip

It will rsync the backup paths to the TEMP directory, unzip the new pack folder into the directory, then rsync the files back.

Usage commands:

sudo bash ~/minecraftupdate.sh -h

Variable Defaults

  • TEMP_DIR='/tmp/updatemc/'
  • PACK_PATH='/usr/bin/minecraft/server/'

TODO

  • Update to do gzip of backups after they have been rsync'd.

Testing


  • shellcheck.net <= this is an online bash script linter i use to validate this script.

Links For Additional Information


  • ansible inventory <= this is python package just use pip install ansible in your virtual environment

About

Role to update server using provided zip folder containing new files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages