redmine_with_git 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/installer/default_settings.sh +47 -0
- data/installer/tasks/_before_run.sh +0 -48
- data/installer/tasks/gitolite_rc.sh +1 -1
- data/installer/tasks/gitolite_setup.sh +1 -1
- data/lib/redmine_with_git/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4da1581067c611d753b0d5777c7d7c279a8de40429cd073edbf57d90c33a6bc3
|
4
|
+
data.tar.gz: f3a7c684b5523358df1bb3463cd6f5463f8ba8785096ce4f31fd529a987f8f87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbe45833d410521bed85e0056e0792e8f85d9db81ca88b7c9f7a1aaf81bdc5b1ead649bb597e50fadfcd66446f8d942afa4f19d18dcfd939fde1b80f98a04aa7
|
7
|
+
data.tar.gz: 7f229c4e39f7e7f6f959521f02fc810bad4dbe5f38a2239e969b840a82069808dbfe8dd78183c3c84cf73988289ab97bb97197f06993f7d21fee3b903a569f69
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# Auxilary functions
|
2
|
+
function sanitize_boolean_var {
|
3
|
+
if [ "$1" != 'false' -a "$1" != 'true' ]; then
|
4
|
+
if [ -n "$1" ]; then
|
5
|
+
echo 'true'
|
6
|
+
else
|
7
|
+
echo 'false'
|
8
|
+
fi
|
9
|
+
else
|
10
|
+
echo "$1"
|
11
|
+
fi
|
12
|
+
}
|
13
|
+
|
14
|
+
function set_by_boolean {
|
15
|
+
local value="${!1}"
|
16
|
+
if [ "$(sanitize_boolean_var "$value")" == 'true' ]; then
|
17
|
+
export $2=$3
|
18
|
+
else
|
19
|
+
export $2=$4
|
20
|
+
fi
|
21
|
+
}
|
22
|
+
|
23
|
+
# Default settings
|
24
|
+
export address_https=false
|
25
|
+
export address_host=localhost
|
26
|
+
export address_port=
|
27
|
+
set_by_boolean address_https address_scheme https http
|
28
|
+
export address_server="$address_host"
|
29
|
+
if [ -n "$address_port" ]; then
|
30
|
+
export address_server="$address_server:$address_port"
|
31
|
+
fi
|
32
|
+
export git_repositories_hierarchical_organisation=true
|
33
|
+
set_by_boolean git_repositories_hierarchical_organisation git_repositories_unique_repo_identifier \
|
34
|
+
false true
|
35
|
+
export gitolite_user=git
|
36
|
+
export gitolite_user_home=/var/lib/git
|
37
|
+
export redmine_git_hosting_ssh_key_name=redmine_git_hosting_id
|
38
|
+
|
39
|
+
# Auxiliary settings
|
40
|
+
export REDMINE_WITH_GIT_INSTALL_ROOT="$(dirname "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )")"
|
41
|
+
export REDMINE_WITH_GIT_TEMPLATE_ROOT="${REDMINE_WITH_GIT_INSTALL_ROOT}/installer/template"
|
42
|
+
|
43
|
+
# Redmine configuration
|
44
|
+
if [ ! -v 'REDMINE_CONFIGURATION_EXTRA' ]; then
|
45
|
+
export REDMINE_CONFIGURATION_EXTRA=''
|
46
|
+
fi
|
47
|
+
export REDMINE_CONFIGURATION_EXTRA+=" scm_xiolite_command: /usr/bin/git"
|
@@ -1,51 +1,3 @@
|
|
1
|
-
# Auxilary functions
|
2
|
-
function sanitize_boolean_var {
|
3
|
-
if [ "$1" != 'false' -a "$1" != 'true' ]; then
|
4
|
-
if [ -n "$1" ]; then
|
5
|
-
echo 'true'
|
6
|
-
else
|
7
|
-
echo 'false'
|
8
|
-
fi
|
9
|
-
else
|
10
|
-
echo "$1"
|
11
|
-
fi
|
12
|
-
}
|
13
|
-
|
14
|
-
function set_by_boolean {
|
15
|
-
local value="${!1}"
|
16
|
-
if [ "$(sanitize_boolean_var "$value")" == 'true' ]; then
|
17
|
-
export $2=$3
|
18
|
-
else
|
19
|
-
export $2=$4
|
20
|
-
fi
|
21
|
-
}
|
22
|
-
|
23
|
-
# Default settings
|
24
|
-
export address_https=false
|
25
|
-
export address_host=localhost
|
26
|
-
export address_port=
|
27
|
-
set_by_boolean address_https address_scheme https http
|
28
|
-
export address_server="$address_host"
|
29
|
-
if [ -n "$address_port" ]; then
|
30
|
-
export address_server="$address_server:$address_port"
|
31
|
-
fi
|
32
|
-
export git_repositories_hierarchical_organisation=true
|
33
|
-
set_by_boolean git_repositories_hierarchical_organisation git_repositories_unique_repo_identifier \
|
34
|
-
false true
|
35
|
-
export gitolite_user=git
|
36
|
-
export gitolite_user_home=/var/lib/git
|
37
|
-
export redmine_git_hosting_ssh_key_name=redmine_git_hosting_id
|
38
|
-
|
39
|
-
# Auxiliary settings
|
40
|
-
export REDMINE_WITH_GIT_INSTALL_ROOT="$(dirname "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )")"
|
41
|
-
export REDMINE_WITH_GIT_TEMPLATE_ROOT="${REDMINE_WITH_GIT_INSTALL_ROOT}/template"
|
42
|
-
|
43
1
|
# Task dependencies
|
44
2
|
taskeiro_add_dependency redmine_bundle redmine_with_git_bundle_requirements
|
45
3
|
taskeiro_add_dependency development redmine_git_hosting
|
46
|
-
|
47
|
-
# Redmine configuration
|
48
|
-
if [ ! -v 'REDMINE_CONFIGURATION_EXTRA' ]; then
|
49
|
-
export REDMINE_CONFIGURATION_EXTRA=''
|
50
|
-
fi
|
51
|
-
REDMINE_CONFIGURATION_EXTRA+=" scm_xiolite_command: /usr/bin/git\n"
|
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.6.
|
4
|
+
version: 0.6.1
|
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: 2019-11-
|
11
|
+
date: 2019-11-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: avm-tools
|
@@ -78,6 +78,7 @@ files:
|
|
78
78
|
- config/locales/pt-BR.yml
|
79
79
|
- config/routes.rb
|
80
80
|
- init.rb
|
81
|
+
- installer/default_settings.sh
|
81
82
|
- installer/programs/linux/sudo_file_exists.sh
|
82
83
|
- installer/programs/rails/user.sh
|
83
84
|
- installer/programs/redmine/installer/triggers/list/redmine_git_hosting_rescue.sh
|