Upgrade script to use bin/installto.sh script provided by RoundCube

This commit is contained in:
Benjamin Renard 2014-05-29 10:13:30 +02:00 committed by root
parent 04a82c5a72
commit df1893a8a2

View file

@ -162,6 +162,12 @@ then
src="" src=""
[ ! -n "$a" ] && default_src="" [ ! -n "$a" ] && default_src=""
fi fi
if [ ! -x "$src/bin/installto.sh" ]
then
echo -n "[WARNING] Le script bin/installto.sh n'est pas présent dans ce répertoire source."
src=""
[ ! -n "$a" ] && default_src=""
fi
done done
echo "Source : $src" echo "Source : $src"
@ -216,19 +222,8 @@ then
rsync -a --copy-dirlinks "$from/" "$to/" rsync -a --copy-dirlinks "$from/" "$to/"
echo "Mise a jour de l'installation $to a partir de $src : " echo "Mise a jour de l'installation $to a partir de $src : "
for file in index.php bin/ SQL/ program/ installer/ skins/ plugins/ cd "$src"
do ./bin/installto.sh "$to"
echo " - Mise a jour de $file"
rsync -a $src/$file $to/$file
chown $OWNER:$GROUP -R $to/$file
done
cd "$to"
if [ -x "bin/update.sh" ]
then
echo "Lancement de l'utilitaire de verification de mise a jour"
./bin/update.sh
fi
if [ -L "$RC_HOME" ] if [ -L "$RC_HOME" ]
then then