| | |
| | | | bin/installto.sh | |
| | | | | |
| | | | This file is part of the Roundcube Webmail client | |
| | | | Copyright (C) 2012, The Roundcube Dev Team | |
| | | | Copyright (C) 2014, The Roundcube Dev Team | |
| | | | | |
| | | | Licensed under the GNU General Public License version 3 or | |
| | | | any later version with exceptions for skins & plugins. | |
| | |
| | | +-----------------------------------------------------------------------+ |
| | | */ |
| | | |
| | | define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' ); |
| | | define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/' ); |
| | | |
| | | require_once INSTALL_PATH . 'program/include/clisetup.php'; |
| | | |
| | |
| | | break; |
| | | } |
| | | } |
| | | foreach (array('index.php','.htaccess','config/defaults.inc.php','CHANGELOG','README.md','UPGRADING','LICENSE') as $file) { |
| | | foreach (array('index.php','.htaccess','config/defaults.inc.php','composer.json-dist','CHANGELOG','README.md','UPGRADING','LICENSE') as $file) { |
| | | if (!system("rsync -av " . INSTALL_PATH . "$file $target_dir/$file")) { |
| | | $err = true; |
| | | break; |
| | |
| | | |
| | | if (!$err) { |
| | | echo "Running update script at target...\n"; |
| | | system("cd $target_dir && bin/update.sh --version=$oldversion"); |
| | | system("cd $target_dir && php bin/update.sh --version=$oldversion"); |
| | | echo "All done.\n"; |
| | | } |
| | | } |