NorbiPeti
0ed9322874
- Updated config files here as they're on the server - Dynmap doesn't have the previous settings (yet) - Using DB for everything we can - Added script to update plugins automatically (finally) - It doesn't support all plugins as of now
28 lines
1.5 KiB
Bash
Executable file
28 lines
1.5 KiB
Bash
Executable file
#!/bin/bash
|
|
git rm --cached -rfq '*/*' ':!:.github/*' # Unstage everything in folders in case a plugin got removed
|
|
readarray -t plugins < plugins.txt # -t removes trailing newlines
|
|
for i in "${plugins[@]}"
|
|
do
|
|
if [ -d $i -a $i != "OpenInv" ]; then
|
|
find $i -name "config.yml" -exec git add -f '{}' \; # All files are ignored, need to force add
|
|
fi
|
|
done
|
|
find . -path './Movecraft/types/*.craft' -exec git add -f '{}' \;
|
|
git add -f 'dynmap/configuration.txt' 'dynmap/worlds.txt' 'dynmap/templates/custom-normal-hires.txt' 'dynmap/templates/custom-nether-hires.txt' 'dynmap/templates/custom-the_end-hires.txt'
|
|
#git add -f 'MythicMobs/*' ':!:MythicMobs/SavedData/*'
|
|
git add -f ':(glob)Jobs/*.yml' ':!:Jobs/furnaceBrewingStands.yml' ':!:Jobs/blockOwnerShips.yml'
|
|
git add -f 'Towny/settings/config.yml' 'Towny/settings/townyperms.yml'
|
|
#git add -f 'PlotSquared/*' ':!:PlotSquared/*storage*' ':!:PlotSquared/translations*' ':!:PlotSquared/user_cache.db'
|
|
#git add -f 'PermissionsEx/permissions.yml'
|
|
git add -f 'Multiverse-Core/worlds.yml'
|
|
#git add -f 'ServerRunner/config.yml' # Not a plugin
|
|
#git add -f 'DungeonsXL/dungeons' 'DungeonsXL/scripts'
|
|
#git add -f ':(glob)TerrainControl/*' 'TerrainControl/worlds/world/*'
|
|
git add -f 'Server/*' # Files are hardlinked from one above
|
|
#git add -f 'Factions/config'
|
|
git add -f 'ChestShop/discounts.yml' 'ChestShop/priceLimits.yml' 'ChestShop/itemAliases.yml'
|
|
|
|
git add -f update.sh download.sh
|
|
|
|
git commit -S && git push #sudo -H needed for GPG signing
|
|
|