setup
This commit is contained in:
33
scripts/install-mitho-stack.sh
Executable file
33
scripts/install-mitho-stack.sh
Executable 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"
|
||||
Reference in New Issue
Block a user