Wiki » Historique » Version 13
Patrice Nadeau, 2014-07-25 21:52
1 | 13 | Patrice Nadeau | %{font-size:18pt}Redmine% |
---|---|---|---|
2 | |||
3 | --- |
||
4 | |||
5 | 1 | Patrice Nadeau | {{toc}} |
6 | |||
7 | 13 | Patrice Nadeau | h1. Redmine |
8 | 6 | Patrice Nadeau | |
9 | h1. Installation |
||
10 | |||
11 | h2. Prérequis |
||
12 | 1 | Patrice Nadeau | |
13 | 13 | Patrice Nadeau | libmysqlclient-devel |
14 | |||
15 | 7 | Patrice Nadeau | h1. Personalisation |
16 | 8 | Patrice Nadeau | |
17 | 1 | Patrice Nadeau | h2. Plugins |
18 | |||
19 | 4 | Patrice Nadeau | h3. Redmine Rouge |
20 | 12 | Patrice Nadeau | |
21 | 1 | Patrice Nadeau | Permet le support de langage supplémentaire pour l'affichage de la syntaxe d'un code source. |
22 | 4 | Patrice Nadeau | |
23 | 13 | Patrice Nadeau | "Langage supporté":http://rouge.jayferd.us/demo |
24 | 1 | Patrice Nadeau | |
25 | https://github.com/ngyuki/redmine_rouge |
||
26 | |||
27 | <pre> |
||
28 | <code class="bash"> |
||
29 | cd /srv/redmine/plugins |
||
30 | git clone https://github.com/ngyuki/redmine_rouge.git |
||
31 | cd .. |
||
32 | bundle install |
||
33 | 2 | Patrice Nadeau | # Relancer redmine |
34 | rcredmine restart |
||
35 | 1 | Patrice Nadeau | </code> |
36 | </pre> |
||
37 | 5 | Patrice Nadeau | |
38 | 11 | Patrice Nadeau | h3. redmine_codebutton |
39 | 9 | Patrice Nadeau | |
40 | 10 | Patrice Nadeau | http://www.redmine.org/plugins/codehightlight_button |
41 | 9 | Patrice Nadeau | |
42 | Bouton permettant de sélectionner du code et d'activer la syntaxe selon un langage. |
||
43 | 11 | Patrice Nadeau | >Ne fonctionne pas pour les langages supplémentaires supportées par le « plug-in » _Redmine Rouge_. Voir "ici":https://github.com/mediatainment/redmine_codebutton/issues/2 |
44 | 9 | Patrice Nadeau | |
45 | 1 | Patrice Nadeau | Installation |
46 | <pre><code class="bash"> |
||
47 | 10 | Patrice Nadeau | cd /srv/redmine/plugins |
48 | git clone https://github.com/mediatainment/redmine_codebutton.git |
||
49 | cd .. |
||
50 | rake redmine:plugins |
||
51 | 9 | Patrice Nadeau | rake redmine:plugins:migrate RAILS_ENV=production |
52 | 10 | Patrice Nadeau | # Relancer Redmine |
53 | 1 | Patrice Nadeau | rcredmine restart |
54 | </code></pre> |
||
55 | 11 | Patrice Nadeau | |
56 | h3. Redmine Checklist plugin |
||
57 | |||
58 | Extends issues to store checklist items |
||
59 | |||
60 | http://redminecrm.com/projects/checklist |
||
61 | |||
62 | Installation |
||
63 | <pre><code class="bash"> |
||
64 | cd /srv/redmine/plugins |
||
65 | wget http://redminecrm.com/license_manager/4200/redmine_issue_checklist-2_0_5.zip |
||
66 | unzip redmine_issue_checklist-2_0_5.zip |
||
67 | bundle exec rake redmine:plugins NAME=redmine_issue_checklist RAILS_ENV=production |
||
68 | # Relancer Redmine |
||
69 | rcredmine restart |
||
70 | </code></pre> |
||
71 | |||
72 | Configuration |
||
73 | Dans *Administration* |
||
74 | * *Plugins* |
||
75 | ** Choisir les options voulues |
||
76 | * *Roles and permissions* |
||
77 | ** Choisir le rôle |
||
78 | Donner les droits voulus sur : |
||
79 | *** Done checklist items |
||
80 | *** Edit checklist items |
||
81 | *** View checklist |
||
82 | |||
83 | |||
84 | 9 | Patrice Nadeau | |
85 | 5 | Patrice Nadeau | h1. Copie de securité |
86 | |||
87 | <pre> <code class="bash"> |
||
88 | #!/bin/bash |
||
89 | # |
||
90 | # backup_redmine.sh |
||
91 | # Backup of a Redmine setup |
||
92 | # Last Changes: 2013-02-23 |
||
93 | # Maintainer: Patrice Nadeau <patricen@telwarwick.net> |
||
94 | |||
95 | # TODO Verify the results (folder exist, enough disk pace , etc..) |
||
96 | |||
97 | ## The only variable needed to be changed |
||
98 | # Directory of the Redmine install |
||
99 | declare -r RAIL_ROOT='/srv/redmine' |
||
100 | # MySQL database |
||
101 | declare -r MYSQL_DB='' |
||
102 | # MySQL username for the Redemine db |
||
103 | declare -r MYSQL_USER='' |
||
104 | # MySQL password for the Redemine db |
||
105 | declare -r MYSQL_PASSWORD='' |
||
106 | # Directory for the backup (must exist and with no space in the name) |
||
107 | declare -r DIR='/root' |
||
108 | ## end |
||
109 | |||
110 | # Exit level |
||
111 | declare -ir EXIT_OK=0 |
||
112 | declare -ir EXIT_WARNING=1 |
||
113 | declare -ir EXIT_ERROR=2 |
||
114 | |||
115 | declare -i STATUS=$EXIT_OK |
||
116 | |||
117 | # The directory inside the archive |
||
118 | declare -r REDMINE='redmine' |
||
119 | TMP_DIR=$DIR/$REDMINE |
||
120 | |||
121 | # This will be used for the archive file |
||
122 | declare -r DST=$DIR/redmine_$(date +%Y%m%d_%H%M%S).tar.gz |
||
123 | |||
124 | # The temporary sql file |
||
125 | declare -r TMP_MYSQL=$TMP_DIR/$MYSQL_DB.mysql |
||
126 | |||
127 | echo "Backup in progress in $DST" |
||
128 | |||
129 | #### Create the temp directory #### |
||
130 | mkdir $TMP_DIR |
||
131 | |||
132 | #### backup MySQL #### |
||
133 | if [ $STATUS -eq $EXIT_OK ] |
||
134 | then |
||
135 | STEP='Creating MySQL backup' |
||
136 | mysqldump --user=$MYSQL_USER --password=$MYSQL_PASSWORD $MYSQL_DB \ |
||
137 | > $TMP_MYSQL |
||
138 | STATUS=$? |
||
139 | fi |
||
140 | |||
141 | #### backup the Redmine folder #### |
||
142 | if [ $STATUS -eq $EXIT_OK ] |
||
143 | then |
||
144 | STEP='Creating Redmine'"'"' files backup' |
||
145 | cp --recursive $RAIL_ROOT $TMP_DIR |
||
146 | STATUS=$? |
||
147 | fi |
||
148 | |||
149 | #### create the archive file #### |
||
150 | if [ $STATUS -eq $EXIT_OK ] |
||
151 | then |
||
152 | STEP="Creating archive" |
||
153 | tar --create --gzip --file $DST --directory=$DIR $REDMINE |
||
154 | STATUS=$? |
||
155 | fi |
||
156 | |||
157 | #### cleanup #### |
||
158 | if [ $STATUS -eq $EXIT_OK ] |
||
159 | then |
||
160 | STEP='Cleaning up' |
||
161 | rm --recursive --force $TMP_DIR |
||
162 | STATUS=$? |
||
163 | fi |
||
164 | |||
165 | #### exit #### |
||
166 | if [ $STATUS -eq $EXIT_OK ] |
||
167 | then |
||
168 | echo "Backup done" |
||
169 | else |
||
170 | echo "Bakup failed with error code $STATUS in step $STEP" |
||
171 | fi |
||
172 | |||
173 | |||
174 | exit $STATUS |
||
175 | |||
176 | </code></pre> |