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