New recipe: Redmine with MariaDB.
This commit is contained in:
24
.recipes/redmine_mariadb/tools/download_plugins_v6.sh
Normal file
24
.recipes/redmine_mariadb/tools/download_plugins_v6.sh
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user