This commit is contained in:
Team3
2026-05-20 23:11:39 +02:00
parent 1544614160
commit f824da8708
5 changed files with 147 additions and 0 deletions

33
scripts/install-mitho-stack.sh Executable file
View File

@@ -0,0 +1,33 @@
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")/.."
PLUGIN_DIR=plugins/additionals
THEME_DIR=themes/purplemine2
# Additionals (Stable-Branch passend zu Redmine 5.1)
if [ ! -d "$PLUGIN_DIR/.git" ]; then
echo ">> cloning additionals"
git clone --depth 1 --branch 3.4.0 https://github.com/alphanodes/additionals.git "$PLUGIN_DIR"
else
echo ">> additionals already present, skipping clone"
fi
# PurpleMine 2 Theme
if [ ! -d "$THEME_DIR/.git" ]; then
echo ">> cloning PurpleMine2"
git clone --depth 1 https://github.com/mrliptontea/PurpleMine2.git "$THEME_DIR"
else
echo ">> PurpleMine2 already present, skipping clone"
fi
echo ">> bundle install in container"
docker compose exec -T redmine bundle install
echo ">> plugin migrate"
docker compose exec -T redmine bundle exec rake redmine:plugins:migrate RAILS_ENV=production
echo ">> restart"
docker compose restart redmine
echo ">> done"