Upgrade script to use bin/installto.sh script provided by RoundCube
This commit is contained in:
parent
04a82c5a72
commit
df1893a8a2
1 changed files with 8 additions and 13 deletions
|
@ -162,6 +162,12 @@ then
|
|||
src=""
|
||||
[ ! -n "$a" ] && default_src=""
|
||||
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
|
||||
echo "Source : $src"
|
||||
|
||||
|
@ -216,19 +222,8 @@ then
|
|||
rsync -a --copy-dirlinks "$from/" "$to/"
|
||||
|
||||
echo "Mise a jour de l'installation $to a partir de $src : "
|
||||
for file in index.php bin/ SQL/ program/ installer/ skins/ plugins/
|
||||
do
|
||||
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
|
||||
cd "$src"
|
||||
./bin/installto.sh "$to"
|
||||
|
||||
if [ -L "$RC_HOME" ]
|
||||
then
|
||||
|
|
Loading…
Reference in a new issue