-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from panubo/upgrade_4_1
Upgrade to rundeck 4.1 & add arm64 support
- Loading branch information
Showing
6 changed files
with
125 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env bash | ||
# Script to run the h2 v2 migration from https://github.com/rundeck-plugins/h2-v2-migration | ||
# This script needs to be run from within a rundeck container with all volumes mounted as usual | ||
|
||
set -euo pipefail | ||
IFS=$'\n\t' | ||
|
||
set -x | ||
|
||
git -C /var/lib/rundeck/data clone https://github.com/rundeck-plugins/h2-v2-migration.git | ||
|
||
mkdir /var/lib/rundeck/data/h2-v2-migration/backup | ||
|
||
cp /var/lib/rundeck/data/rundeckdb.* /var/lib/rundeck/data/h2-v2-migration/backup/ | ||
|
||
sed -i 's/grailsdb/rundeckdb/g' /var/lib/rundeck/data/h2-v2-migration/migration.sh | ||
|
||
( | ||
cd /var/lib/rundeck/data/h2-v2-migration | ||
/var/lib/rundeck/data/h2-v2-migration/migration.sh -f /var/lib/rundeck/data/h2-v2-migration/backup/rundeckdb -u sa | ||
) | ||
|
||
cp /var/lib/rundeck/data/h2-v2-migration/output/v2/data/rundeckdb.mv.db /var/lib/rundeck/data/rundeckdb.mv.db | ||
|
||
chown rundeck:rundeck /var/lib/rundeck/data/rundeckdb.mv.db |