Commit Graph

54 Commits

Author SHA1 Message Date
Aleksander Machniak
0675156ab2 Add dummy index.php 2025-02-09 14:27:22 +01:00
Aleksander Machniak
64df318a73 Add static files server (#9294)
Make use of public_html mandatory
2025-02-09 14:10:50 +01:00
Michael Voříšek
bdd5de55b5 Rename composer.json.dist to composer.json (#9279)
* Rename composer.json.dist to composer.json
* fix update
2024-04-03 18:06:01 +02:00
Michael Voříšek
d18406a8bd Fix binary operator spaces CS (#9330)
* align_single_space_minimal for assign

* assign operators grouping is not supported by PHP CS Fixer

* binary_operator_spaces = single_space

* fix anonymous function on single line

* align comments manually
2024-02-02 07:53:34 +01:00
Michael Voříšek
4ee79b9e84 fix "explicit_string_variable" (#9315) 2024-01-22 08:05:59 +01:00
Michael Voříšek
6a53a1d853 Fix CS (whitespace, visibility) (#9297)
* Fix "method_argument_space"

* Fix "control_structure_continuation_position"

* Fix "new_with_parentheses"

* Fix "blank_line_before_statement"

* Fix "visibility_required"

* Fix some "array_indentation"

* Fix some "array_indentation" - unify all "rcube::raise_error" calls

* rm useless eslint ignores and add rules counts

* sort eslint ignores

* fix eslint ignores grammar

* Revert "Fix "blank_line_before_statement""

* fix CS 3.46.0
2024-01-04 14:26:35 +01:00
Michael Voříšek
2643be3eaa Fix single quotes CS (#9283)
* Fix "single_quote"

* fix "escape_implicit_backslashes"

* fix typo from f363481c

* fix single quotes in JS

* fix some minor JS CS

* fix CS v3.45.0
2023-12-31 16:36:55 +01:00
Michael Voříšek
3e458fa5fd Refer native constants unambiguously (#9275)
* Fix "native_constant_invocation" CS

* "self_accessor" was fixed in 9269 PR

* "php_unit_strict" was fixed in 9268 PR
2023-12-23 17:02:19 +01:00
Michael Voříšek
28c778b7a0 Modernize more CS III (#9270)
* fix "single_trait_insert_per_statement"

* fix "empty_loop_condition"

* fix "backtick_to_shell_exec"

* fix "phpdoc_to_comment"

* fix "no_empty_statement"

* fix "heredoc_to_nowdoc"

* fix "class_reference_name_casing"

* fix "align_multiline_comment"

* fix "heredoc_indentation"

* fix "constant_case"

* fix "single_line_comment_style"

* fix "no_null_property_initialization"

* fix "standardize_increment"

* fix "no_unneeded_control_parentheses"

* fix missing NL after "<?php"

* fix php in *.sh files too

* fix trailing spaces from all text files

* fix "explicit_indirect_variable"

* Revert "fix "align_multiline_comment""

This reverts commit 42e584f8e3.

* fix "align_multiline_comment" properly

* Revert "fix trailing spaces from all text files" - diff files only

* Revert "Revert "fix trailing spaces from all text files" - diff files only"

This reverts commit 2101c2a3a3.

* rm useless "setup-php" config
2023-12-18 07:46:51 +01:00
Aleksander Machniak
98ac6e02f5 Fix unneeded php command use in installto.sh and deluser.sh scripts (#9237) 2023-12-05 19:58:20 +01:00
Thomas B
dec93dc1b7 Update vendor dir from installto.sh if untouched (#8642) (#8840)
* installto.sh checks for a marker indicating that composer was not run/used.
* update.sh tries to find and run composer
2023-01-05 21:30:51 +01:00
Felix E
3053a1c5e4 Add public_html to list of updated directories (#8646) 2022-08-09 19:16:45 +02:00
Aleksander Machniak
d3143ddc40 Remove misleading notice message (#7544) 2021-07-17 08:52:56 +02:00
Aleksander Machniak
9c0ce85d19 Secure the new CHANGELOG.md file and update installto.sh to sync it 2021-05-10 11:11:13 +02:00
Aleksander Machniak
61a5ade872 PHP8 fixes, short array syntax 2020-12-12 16:20:14 +01:00
Aleksander Machniak
f610707554 Skip install-jsdeps.sh execution when using "complete" package to update "custom" installation (#7087) 2019-12-21 08:50:18 +01:00
Aleksander Machniak
8a726316bb Fix displaying version number for rcX versions 2019-11-07 15:19:27 +01:00
Thomas Bruederli
65735a6f94 Add accept option (-y) to installto.sh script 2019-08-14 13:26:49 +02:00
Jack Cherng
198585d8a0 Fix implode() wrong parameter order (#6866)
It has been deprecated in PHP 7.4.

Such as PHP deprecated:  implode(): Passing glue string after array is deprecated. Swap the parameters in /var/www/roundcubemail/program/lib/Roundcube/rcube_db.php on line 917

Signed-off-by: Jack Cherng <jfcherng@gmail.com>
2019-08-09 16:04:51 +02:00
Aleksander Machniak
037bc3c94f Fix code indentation 2019-06-15 09:30:11 +02:00
Aleksander Machniak
8e63309203 CS fixes, tabs to spaces 2019-06-15 08:56:35 +02:00
Aleksander Machniak
e3d3add48a installto.sh: Add possibility to run the update even on the up-to-date installation (#6533) 2019-04-22 09:37:01 +02:00
Aleksander Machniak
57c67db029 Remove year(s) from copyright headers + some cleanup 2019-04-16 10:42:45 +02:00
Aleksander Machniak
58bdf72300 Improve installto.sh script output 2018-04-26 14:19:17 +02:00
Helmut K. C. Tessarek
5c78b8471b Improve installto.sh (follow-up to PR #6261) (#6263)
If the contents `file` and `file.new` are the same, `file.new` should be removed.
2018-04-26 13:52:09 +02:00
Helmut K. C. Tessarek
ae9f79e155 Improve installto.sh to minimize downtime for an upgrade (#6261)
- do not overwrite .htaccess and .user.ini (create .new files instead)
- do not copy installer directory, if it does not exist on target
- notify user to delete the 'installer' dir after upgrade
2018-04-24 08:36:11 +02:00
Nathan Rennie-Waldock
c7b6efdd47 installto.sh: Fix false reporting of failed upgrade (#6019)
system() returns the last line of output (or false on failure)
rsync will have no output if the file being copied hasn't changed

Signed-off-by: Nathan Rennie-Waldock <nathan.renniewaldock@gmail.com>
2017-11-03 08:40:30 +01:00
Aleksander Machniak
5ea0d5bfbb Support .user.ini in installto.sh 2017-07-12 13:29:26 +02:00
Aleksander Machniak
5597ff2107 Skip js deps installation if there's no jsdeps.json and install-jsdeps.sh 2017-06-27 17:34:46 +02:00
Aleksander Machniak
e5bc7b85e0 Cleanup target /vendor directory from old dependencies
- also slightly fixed rsync command syntax
2017-06-18 09:57:55 +02:00
Thomas Bruederli
109ca4dfc2 Fix js-deps check and installation 2017-06-16 09:48:54 +02:00
Thomas Bruederli
cbef314d69 Run bin/install-jsdeps.sh from installto.sh script 2017-06-16 09:48:23 +02:00
Aleksander Machniak
715e8bf8bd Print error from CLI scripts when system/exec function is disabled (#5744) 2017-05-05 11:36:30 +02:00
Aleksander Machniak
20da7f1539 Copy jsdeps.json file on update (#5598) 2017-01-20 13:32:28 +01:00
Aleksander Machniak
ab429dbef2 Fix rsync error handling in installto.sh script (#5562) 2016-12-23 12:52:50 +01:00
Aleksander Machniak
04aa29493c Fix so upgrade script makes sure program/lib directory does not contain old libraries (#5287) 2016-06-06 17:14:22 +02:00
Aleksander Machniak
e0481f0ccb Save copy of original .htaccess file when using installto.sh script (1490623) 2016-01-10 12:39:07 +01:00
Aleksander Machniak
14b8b4def4 Remove also old .htaccess file that is not used anymore (#1489980) 2015-09-25 20:06:35 +02:00
Aleksander Machniak
dba43e7c8b Copy also INSTALL file 2015-02-04 09:00:34 +01:00
Thomas Bruederli
bd51db63de Sync vendor folder if exists in source package (#1490145) 2014-12-18 16:18:35 +01:00
Thomas Bruederli
0c137f7dac Consider composer.json dependencies in installation and upgrading instructions and scripts 2014-11-09 15:36:57 +01:00
Aleksander Machniak
0ea079d604 dirname(__FILE__) -> __DIR__ 2014-10-13 14:41:55 +02:00
Thomas Bruederli
f5007eca74 Invoke update scripts with php command directly (#1489322) 2014-01-29 12:27:12 +01:00
Aleksander Machniak
461a30d771 Merge config files (#1487311).
Now we have defaults.inc.php and config.inc.php.
Renamed $rcmail_config to $config. Old naming and old files are supported
for backward compatibility.
2013-06-14 12:09:08 +02:00
Aleksander Machniak
f23ef1c968 Fix error handling in CLI mode, use STDERR and non-empty exit code (#1489043) 2013-04-26 11:26:58 +02:00
Aleksander Machniak
a079269166 Fix version comparisons with -stable suffix (#1488876) 2012-12-20 08:53:48 +01:00
Thomas Bruederli
a025cddbc5 Fix default skin removal 2012-08-05 14:13:13 +02:00
Thomas Bruederli
471d559374 Update installto/update script to remove old default skins and copy all necessary files; repeat notice about missing config options after auto-update 2012-08-05 14:01:22 +02:00
Aleksander Machniak
041c93ce0b Removed $Id$ 2012-05-22 12:31:37 +02:00
thomascube
54d074613f Copy all skins in installto script (#1488376) 2012-03-03 18:36:42 +00:00