Benjamin Renard commited on 2014-05-29 08:13:55
Showing 1 changed files, with 8 additions and 13 deletions.
... | ... |
@@ -162,6 +162,12 @@ then |
162 | 162 |
src="" |
163 | 163 |
[ ! -n "$a" ] && default_src="" |
164 | 164 |
fi |
165 |
+ if [ ! -x "$src/bin/installto.sh" ] |
|
166 |
+ then |
|
167 |
+ echo -n "[WARNING] Le script bin/installto.sh n'est pas présent dans ce répertoire source." |
|
168 |
+ src="" |
|
169 |
+ [ ! -n "$a" ] && default_src="" |
|
170 |
+ fi |
|
165 | 171 |
done |
166 | 172 |
echo "Source : $src" |
167 | 173 |
|
... | ... |
@@ -216,19 +222,8 @@ then |
216 | 222 |
rsync -a --copy-dirlinks "$from/" "$to/" |
217 | 223 |
|
218 | 224 |
echo "Mise a jour de l'installation $to a partir de $src : " |
219 |
- for file in index.php bin/ SQL/ program/ installer/ skins/ plugins/ |
|
220 |
- do |
|
221 |
- echo " - Mise a jour de $file" |
|
222 |
- rsync -a $src/$file $to/$file |
|
223 |
- chown $OWNER:$GROUP -R $to/$file |
|
224 |
- done |
|
225 |
- |
|
226 |
- cd "$to" |
|
227 |
- if [ -x "bin/update.sh" ] |
|
228 |
- then |
|
229 |
- echo "Lancement de l'utilitaire de verification de mise a jour" |
|
230 |
- ./bin/update.sh |
|
231 |
- fi |
|
225 |
+ cd "$src" |
|
226 |
+ ./bin/installto.sh "$to" |
|
232 | 227 |
|
233 | 228 |
if [ -L "$RC_HOME" ] |
234 | 229 |
then |
235 | 230 |