| | |
| | | break; |
| | | } |
| | | } |
| | | foreach (array('index.php','.htaccess','config/main.inc.php.dist','config/db.inc.php.dist','CHANGELOG','README.md','UPGRADING','LICENSE') as $file) { |
| | | foreach (array('index.php','.htaccess','config/defaults.inc.php','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"; |
| | | } |
| | | } |