redmine: Add update script
The following steps need to be done before running the script:
1. Copy Gemfile from new Redmine version to the Redmine folder in
Nixpkgs
2. Manually modify the database lines in Gemfile and just include the
gems for the supported databases (diff the two files).
Signed-off-by: Felix Singer <felixsinger@posteo.net>
commit3d33f6253c951c305df971a61f9000076ece588a
authorFelix Singer <felixsinger@posteo.net>
dateSun 24 Apr 2022, 02:17 (5 years ago)
parentc0fae10
pkgs/applications/version-management/redmine/update.shnew file+17
@@ -0,0 +1,17 @@
1+#!/usr/bin/env nix-shell
2+#!nix-shell --pure -i bash -p cacert bundix
3+
4+# Do these steps before running this script:
5+# 1. Copy Gemfile from new Redmine version to this folder
6+# 2. Manually modify the database lines in Gemfile (diff the two files, it's obvious)
7+
8+pkg_dir="$(dirname "$0")"
9+cd ${pkg_dir}
10+
11+for file in "gemset.nix" "Gemfile.lock"; do
12+ if [ -f ${file} ]; then
13+ rm ${file}
14+ fi
15+done
16+
17+bundix -l