Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2016-06-06 18:14:22 +0300
committerAleksander Machniak <alec@alec.pl>2016-06-06 18:14:22 +0300
commit04aa29493c7eafc7bd6c96735b567f5928a4b7aa (patch)
tree6c54743b00b65e47ef74750c97a1ff20fa08c9c1 /bin
parent13b76d9b1e56d5a20d854515932e7d055b2b92fd (diff)
Fix so upgrade script makes sure program/lib directory does not contain old libraries (#5287)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/installto.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/installto.sh b/bin/installto.sh
index 4bbf46280..2cc1b2558 100755
--- a/bin/installto.sh
+++ b/bin/installto.sh
@@ -5,7 +5,7 @@
| bin/installto.sh |
| |
| This file is part of the Roundcube Webmail client |
- | Copyright (C) 2014, The Roundcube Dev Team |
+ | Copyright (C) 2014-2016, The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
@@ -55,7 +55,9 @@ if (strtolower($input) == 'y') {
$dirs[] = 'vendor';
}
foreach ($dirs as $dir) {
- if (!system("rsync -avC " . INSTALL_PATH . "$dir/* $target_dir/$dir/")) {
+ // @FIXME: should we use --delete for all directories?
+ $delete = in_array($dir, array('program', 'installer')) ? '--delete ' : '';
+ if (!system("rsync -avC " . $delete . INSTALL_PATH . "$dir/* $target_dir/$dir/")) {
$err = true;
break;
}