Compare commits

...

19 Commits

Author SHA1 Message Date
32532147e8 Minor cleanup 2023-05-29 19:07:23 +02:00
2fd033a8c5 removed debug stuff 2023-05-29 19:01:16 +02:00
a1b030e463 Fixes for language files7. 2023-05-29 16:18:23 +02:00
21fb878ffb Fixes for language files6. 2023-05-29 16:17:12 +02:00
2114bcc8b5 Fixes for language files5. 2023-05-29 16:14:05 +02:00
7d88fc5066 Fixes for language files4. 2023-05-29 16:12:03 +02:00
08a53a737f Fixes for language files3. 2023-05-29 16:07:40 +02:00
46e90bd798 Fixes for language files2. 2023-05-29 15:53:23 +02:00
c8b88021ed Fixes for language files1. 2023-05-29 15:50:59 +02:00
dabe69967d Fixes for language files. 2023-05-29 15:49:01 +02:00
154bd410a4 added more flibiliy for versions, added dry-run option 2023-05-29 15:26:11 +02:00
7e85faf2f2 added more flibiliy for versions, added dry-run option 2023-05-29 15:07:19 +02:00
21e577b2ca Added the changes regarding shebang and php version to the README.md 2022-08-30 14:20:52 +02:00
04ae283e13 Changed shebang to be more generic, a KeyHelp environment needs an explicit call with keyhelp-php81 2022-08-30 14:18:58 +02:00
9f31cf0304 Changed shebang to be more generic, a KeyHelp environment needs an explicit call with keyhelp-php81 2022-08-30 14:18:36 +02:00
e3a9fb1454 Lowered required version to php 8.0 2022-08-30 14:16:33 +02:00
b99438c925 Lowered required version to php 8.0 2022-08-30 14:16:25 +02:00
ab55fd9abb Fixed a bug when the language file is not yet available. 2022-07-02 12:56:19 +02:00
ff93b288c2 added composer part to README.md 2022-06-15 13:38:01 +02:00
3 changed files with 598 additions and 493 deletions

File diff suppressed because it is too large Load Diff

@ -1,3 +1,35 @@
# phpbb_updates
Shell Script to update phpBB to current version.
Shell Script to update phpBB to current version.
Usage:
Switch into your current phpBB root directory, then
`git clone https://git.24unix.net/tracer/phpbb_updates.git`
Or download either:
https://git.24unix.net/tracer/phpbb_updates/archive/v0.0.1.zip
or:
https://git.24unix.net/tracer/phpbb_updates/archive/v0.0.1.tar.gz
and unpack them into the same directory and change into phpbb_updates.
Then: Install composer (https://getcomposer.org/download/) and run
`composer install`
followed by:
`php update.php` or `/update.php`
If you are using KeyHelp, replace
`composer install` with `keyhelp-php81 composer install`
and
`php update.php` with `keyhelp-php81 update.php`

@ -1,9 +1,21 @@
#!/usr/bin/keyhelp-php81 -d apc.enable_cli=1
#!/usr/bin/env php
<?php
use App\UpdateController;
require __DIR__ . '/vendor/autoload.php';
$update = new UpdateController();
$options = $update->parseOpts();
// Help option
if (array_key_exists(key: 'h', array: $options) || array_key_exists(key: 'help', array: $options)) {
$update->printHelp();
exit(0);
}
if (array_key_exists(key: 'd', array: $options) || array_key_exists(key: 'dry-run', array: $options)) {
$update->setDryRun();
}
$update->handleUpdate();