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