2
0
Files
docker-skeleton/.recipes/redmine_mariadb/tools/download_plugins_v6.sh

25 lines
862 B
Bash

#!/bin/bash
#
# Downloads a copy of the latest versions of the installed plugins
# into a temporary destination folder. Doesn't hurt the running
# instance.
#
# To perform the actual upgrade you have to stop the instance and manually
# upgrade the contents of the storage/volumes/redmine_plugins folder.
# Where I'm?
SCRPATH="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" #"
# Temporary destination folder for download.
PLUGINS=$(readlink -f "$SCRPATH/../storage/backups/plugins/latest_v6")
if [ ! -d "$PLUGINS" -o ! -w "$PLUGINS" ]; then
echo -e "Bad destination: $PLUGINS" >&2; exit 1
fi
# Plugins from GitHub.
# Feel free to adjust it to your needs.
#rm -rf "$PLUGINS/additionals" 2>/dev/null
#git clone -b stable https://github.com/alphanodes/additionals.git "$PLUGINS/additionals"
# Some cleanup
rm -rf "$PLUGINS"/*/.git "$PLUGINS"/*/.github