Skip to content

Instantly share code, notes, and snippets.

@jsuarezl
Last active December 17, 2017 23:58
Show Gist options
  • Save jsuarezl/397b8dc20ac41a378f30ceea3e5fa3d7 to your computer and use it in GitHub Desktop.
Save jsuarezl/397b8dc20ac41a378f30ceea3e5fa3d7 to your computer and use it in GitHub Desktop.
Bash script to update plugins
#!/bin/bash
serversFolder=/home
# List of servers to update the plugin.
servers=(Survival Creative SkyBlock)
# Go to servers Folder
cd $serversFolder
# Download the latest version of the plugins
wget https://ci.nifheim.net/job/Coins/lastSuccessfulBuild/artifact/target/
# Copy the compiled files to the server's plugin folder.
for server in ${servers[*]}
do
cp Coins.jar $server/plugins
done
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment