redmine_with_git 0.7.5 → 0.7.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/initializers/000_dependencies.rb +1 -1
- data/installer/tasks/gitolite_rc.sh +1 -1
- data/installer/tasks/redmine_git_hosting_settings.sh +1 -1
- data/installer/tasks/redmine_gitolite_sudoer.sh +2 -2
- data/installer/tasks/redmine_with_git_bundle_requirements.sh +1 -1
- data/installer/template/redmine_git_hosting_setting_value.sql +10 -10
- data/installer/template/redmine_user_sudoer +5 -5
- data/lib/redmine_with_git/version.rb +1 -1
- metadata +2 -3
- data/installer/programs/rails/user.sh +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b311b6981d9bf6600f2a6684d17224cea0397db16c2d085e994766e8978e996
|
4
|
+
data.tar.gz: c915a9aa476c7078d4325b93c610935249b4e5235c0962da9def327028948fcc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e986e1adaee7fff2ec9acf202e8e2a8a6d9365f660db6e0daeca6b2477991f8a95688f2bc820f4dee70b0d1184d64a1fc0890542d5a51b9e4f4a16582532562
|
7
|
+
data.tar.gz: a78007226d52b1f11bdefaea5a9346a94f7fe6b311c779b9eb379012ecc43d518ae4a2e7d9cceba96b313916b10d8c1d1b0790b37497d4e968f95149d4f3cbc0
|
@@ -20,6 +20,6 @@ Redmine::Plugin.post_register :redmine_with_git do
|
|
20
20
|
|
21
21
|
# Source: https://github.com/esquilo-azul/redmine_installer
|
22
22
|
if ::Redmine::Plugin.registered_plugins.keys.include?(:redmine_installer)
|
23
|
-
requires_redmine_plugin(:redmine_installer, version_or_higher: '0.
|
23
|
+
requires_redmine_plugin(:redmine_installer, version_or_higher: '0.18.0')
|
24
24
|
end
|
25
25
|
end
|
@@ -6,7 +6,7 @@ set -e
|
|
6
6
|
gitolite_rc_file="$gitolite_user_home/.gitolite.rc"
|
7
7
|
|
8
8
|
function gitolite_rc_template {
|
9
|
-
|
9
|
+
template_apply "${REDMINE_WITH_GIT_TEMPLATE_ROOT}/gitolite.rc"
|
10
10
|
}
|
11
11
|
|
12
12
|
function task_dependencies {
|
@@ -5,7 +5,7 @@ set -e
|
|
5
5
|
|
6
6
|
function redmine_git_hosting_setting_template {
|
7
7
|
export redmine_git_hosting_ssh_key=$(programeiro /redmine_git_hosting/ssh_key)
|
8
|
-
|
8
|
+
template_apply "${REDMINE_WITH_GIT_TEMPLATE_ROOT}/redmine_git_hosting_setting_value.sql" -
|
9
9
|
}
|
10
10
|
export -f redmine_git_hosting_setting_template
|
11
11
|
|
@@ -29,7 +29,7 @@ function task_condition {
|
|
29
29
|
fi
|
30
30
|
export rails_user="$(programeiro /rails/user)"
|
31
31
|
SUDOERS_FILE_COPY="$(sudoers_file_copy_file)"
|
32
|
-
result=$(
|
32
|
+
result=$(template_apply "${REDMINE_WITH_GIT_TEMPLATE_ROOT}/redmine_user_sudoer" | programeiro /text/diff_stdin_file "$SUDOERS_FILE_COPY")
|
33
33
|
sudo rm -f "$SUDOERS_FILE_COPY"
|
34
34
|
if [ "$result" != '0' ]; then
|
35
35
|
return 1
|
@@ -44,7 +44,7 @@ function task_fix {
|
|
44
44
|
set -u
|
45
45
|
set -e
|
46
46
|
export rails_user="$(programeiro /rails/user)"
|
47
|
-
|
47
|
+
template_apply "$REDMINE_WITH_GIT_TEMPLATE_ROOT/redmine_user_sudoer" | \
|
48
48
|
programeiro /linux/sudo_write "$SUDOER_FILE"
|
49
49
|
}
|
50
50
|
export -f task_fix
|
@@ -15,7 +15,7 @@ gitolite_flush_cache: 'false'
|
|
15
15
|
gitolite_global_storage_dir: repositories/
|
16
16
|
gitolite_hooks_are_asynchronous: 'false'
|
17
17
|
gitolite_hooks_debug: 'false'
|
18
|
-
gitolite_hooks_url: "
|
18
|
+
gitolite_hooks_url: "%%address_scheme%%://%%address_authority%%%%address_path%%"
|
19
19
|
gitolite_http_by_default: '1'
|
20
20
|
gitolite_identifier_prefix: redmine_
|
21
21
|
gitolite_identifier_strip_user_id: 'false'
|
@@ -36,18 +36,18 @@ gitolite_resync_all_ssh_keys: 'false'
|
|
36
36
|
gitolite_scripts_dir: ''
|
37
37
|
gitolite_server_host: 127.0.0.1
|
38
38
|
gitolite_server_port: '22'
|
39
|
-
gitolite_ssh_private_key: "
|
40
|
-
gitolite_ssh_public_key: "
|
41
|
-
gitolite_temp_dir: "/tmp/redmine_git_hosting_
|
39
|
+
gitolite_ssh_private_key: "%%redmine_git_hosting_ssh_key%%"
|
40
|
+
gitolite_ssh_public_key: "%%redmine_git_hosting_ssh_key%%.pub"
|
41
|
+
gitolite_temp_dir: "/tmp/redmine_git_hosting_%%gitolite_user%%/"
|
42
42
|
gitolite_timeout: '10'
|
43
|
-
gitolite_user:
|
43
|
+
gitolite_user: %%gitolite_user%%
|
44
44
|
gitolite_use_sidekiq: 'false'
|
45
|
-
hierarchical_organisation: '
|
46
|
-
http_server_domain:
|
45
|
+
hierarchical_organisation: '%%git_repositories_hierarchical_organisation%%'
|
46
|
+
http_server_domain: %%address_authority%%
|
47
47
|
http_server_subdir: ''
|
48
|
-
https_server_domain:
|
48
|
+
https_server_domain: %%address_authority%%
|
49
49
|
init_repositories_on_create: 'false'
|
50
50
|
redmine_has_rw_access_on_all_repos: 'true'
|
51
51
|
show_repositories_url: 'true'
|
52
|
-
ssh_server_domain:
|
53
|
-
unique_repo_identifier: '
|
52
|
+
ssh_server_domain: %%address_host%%
|
53
|
+
unique_repo_identifier: '%%git_repositories_unique_repo_identifier%%'
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Defaults:redmine !requiretty
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
2
|
+
%%rails_user%% ALL=(%%gitolite_user%%) NOPASSWD:ALL
|
3
|
+
%%rails_user%% ALL=(root) NOPASSWD:/usr/bin/stat
|
4
|
+
%%rails_user%% ALL=(root) NOPASSWD:/bin/cp %%SUDOER_FILE%% %%SUDOER_TMP_FILE%%
|
5
|
+
%%rails_user%% ALL=(root) NOPASSWD:/bin/chmod og+r %%SUDOER_TMP_FILE%%
|
6
|
+
%%rails_user%% ALL=(root) NOPASSWD:/bin/rm -f %%SUDOER_TMP_FILE%%
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redmine_with_git
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esquilo Azul Company
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: avm
|
@@ -75,7 +75,6 @@ files:
|
|
75
75
|
- installer/default_settings.sh
|
76
76
|
- installer/programs/linux/sudo_file_exists.sh
|
77
77
|
- installer/programs/linux/sudo_write.sh
|
78
|
-
- installer/programs/rails/user.sh
|
79
78
|
- installer/programs/redmine/installer/triggers/list/redmine_git_hosting_rescue.sh
|
80
79
|
- installer/programs/redmine_git_hosting/ssh_key.sh
|
81
80
|
- installer/programs/text/diff_stdin_file.sh
|