Skip to content

Commit 4d9d5ea

Browse files
author
Markus M. May
committed
fix settings not saveble problem
1 parent c92f0b2 commit 4d9d5ea

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

assets/build/install.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,10 @@ exec_as_redmine mkdir -p ${REDMINE_DATA_DIR}/git
8686
exec_as_redmine git clone https://github.com/koppen/redmine_github_hook.git ${REDMINE_INSTALL_DIR}/plugins/redmine_github_hook
8787

8888
# install redmine_openid_connect
89-
exec_as_redmine echo "Use latest version..."
90-
exec_as_redmine git clone https://github.com/devopskube/redmine_openid_connect.git ${REDMINE_INSTALL_DIR}/plugins/redmine_openid_connect
91-
exec_as_redmine mkdir -p ${REDMINE_DATA_DIR}/git
89+
REDMINE_OIC_VERSION=0.9.2
90+
exec_as_redmine wget "https://github.com/devopskube/redmine_openid_connect/archive/${REDMINE_OIC_VERSION}.tar.gz" -O /tmp/redmine_openid_connect-${REDMINE_OIC_VERSION}.tar.gz
91+
exec_as_redmine mkdir ${REDMINE_INSTALL_DIR}/plugins/redmine_openid_connect
92+
exec_as_redmine tar -zxf /tmp/redmine_openid_connect-${REDMINE_OIC_VERSION}.tar.gz --strip=1 -C ${REDMINE_INSTALL_DIR}/plugins/redmine_openid_connect
9293
## END DEVOPSKUBE MODIFICATIONS
9394

9495
exec_as_redmine bundle install -j$(nproc) --without development test --path ${REDMINE_INSTALL_DIR}/vendor/bundle

assets/runtime/config/redmine/openid_connect_init.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@
88
author 'Alfonso Juan Dillera / Markus M. May'
99
description 'OpenID Connect implementation for Redmine'
1010
version '0.9.2'
11-
url 'https://bitbucket.org/triplem74/redmine_openid_connect'
11+
url 'https://github.com/devopskube/redmine_git_remote'
1212
author_url 'http://github.com/adillera'
1313

1414
settings :default => {
15-
:enabled => {{OPENID_ENABLED}},
16-
:client_id => '{{OPENID_CLIENT_ID}}',
17-
:openid_connect_server_url => '{{KEYCLOAK_PROTOCOL}}://{{KEYCLOAK_HOST}}/auth/realms/devopskube',
18-
:client_secret => '{{OPENID_CLIENT_SECRET}}',
19-
:group => '{{OPENID_USER_GROUP}}',
20-
:admin_group => '{{OPENID_ADMIN_GROUP}}',
21-
:dynamic_config_expiry => 86400,
22-
:disable_ssl_validation => {{OPENID_DISABLE_SSL_VALIDATION}},
15+
'enabled' => {{OPENID_ENABLED}},
16+
'client_id' => '{{OPENID_CLIENT_ID}}',
17+
'openid_connect_server_url' => '{{KEYCLOAK_PROTOCOL}}://{{KEYCLOAK_HOST}}/auth/realms/devopskube',
18+
'client_secret' => '{{OPENID_CLIENT_SECRET}}',
19+
'group' => '{{OPENID_USER_GROUP}}',
20+
'admin_group' => '{{OPENID_ADMIN_GROUP}}',
21+
'dynamic_config_expiry' => 86400,
22+
'disable_ssl_validation' => {{OPENID_DISABLE_SSL_VALIDATION}},
2323
}, partial: 'settings/redmine_openid_connect_settings'
2424
end
2525

0 commit comments

Comments
 (0)