aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGravatar berumuron <dev@marienfressinaud.fr> 2021-03-26 19:41:33 +0100
committerGravatar GitHub <noreply@github.com> 2021-03-26 19:41:33 +0100
commitcc6c529562ef5751133d97e3fec067c0072f215b (patch)
treee96d2ae665eee11f45607d57ac612a7a7267e314 /app
parenteeff1a17b0ae13c32560e9d1b59c6e82965f3e6d (diff)
tec: Remove data/do-install.txt (#3555)
* Remove file data/do-install.txt This file was painful during update because we had to remember to delete it each time. It added a security issue by allowing an attacker to reinstall FreshRSS during the update process. The (more powerful) file data/applied_migrations.txt has been introduced in 8619cf6fa to replace do-install.txt. We had to wait for at least one release in order to make sure existing instances of FreshRSS created the migration file. It should be ok now. * Replace i18n install.not_deleted key * Update documentation to update FreshRSS
Diffstat (limited to 'app')
-rw-r--r--app/Controllers/updateController.php1
-rw-r--r--app/i18n/cz/install.php2
-rw-r--r--app/i18n/de/install.php2
-rw-r--r--app/i18n/en-us/install.php2
-rw-r--r--app/i18n/en/install.php2
-rwxr-xr-xapp/i18n/es/install.php2
-rw-r--r--app/i18n/fr/install.php2
-rw-r--r--app/i18n/he/install.php2
-rw-r--r--app/i18n/it/install.php2
-rw-r--r--app/i18n/kr/install.php2
-rw-r--r--app/i18n/nl/install.php2
-rw-r--r--app/i18n/oc/install.php2
-rw-r--r--app/i18n/pl/install.php2
-rw-r--r--app/i18n/pt-br/install.php2
-rw-r--r--app/i18n/ru/install.php2
-rw-r--r--app/i18n/sk/install.php2
-rw-r--r--app/i18n/tr/install.php2
-rw-r--r--app/i18n/zh-cn/install.php2
-rw-r--r--app/install.php7
19 files changed, 22 insertions, 20 deletions
diff --git a/app/Controllers/updateController.php b/app/Controllers/updateController.php
index 45bf70f62..fb00165ea 100644
--- a/app/Controllers/updateController.php
+++ b/app/Controllers/updateController.php
@@ -44,7 +44,6 @@ class FreshRSS_update_Controller extends Minz_ActionController {
$return = 1;
}
chdir($cwd);
- deleteInstall();
$line = is_array($output) ? implode('; ', $output) : '' . $output;
return $return == 0 ? true : 'Git error: ' . $line;
}
diff --git a/app/i18n/cz/install.php b/app/i18n/cz/install.php
index f0419ff6e..daca92ca3 100644
--- a/app/i18n/cz/install.php
+++ b/app/i18n/cz/install.php
@@ -111,7 +111,7 @@ return array(
'choose' => 'Vyberte jazyk FreshRSS',
'defined' => 'Jazyk byl nastaven.',
),
- 'not_deleted' => 'Nastala chyba, soubor <em>%s</em> musíte smazat ručně.',
+ 'missing_applied_migrations' => 'Something went wrong; you should create an empty file <em>%s</em> manually.', // TODO - Translation
'ok' => 'Instalace byla úspěšná.',
'session' => array(
'nok' => 'The web server seems to be incorrectly configured for cookies required for PHP sessions!', // TODO - Translation
diff --git a/app/i18n/de/install.php b/app/i18n/de/install.php
index df74d89be..aded58da3 100644
--- a/app/i18n/de/install.php
+++ b/app/i18n/de/install.php
@@ -111,7 +111,7 @@ return array(
'choose' => 'Wählen Sie eine Sprache für FreshRSS',
'defined' => 'Die Sprache wurde festgelegt.',
),
- 'not_deleted' => 'Etwas ist schiefgelaufen; Sie müssen die Datei <em>%s</em> manuell löschen.',
+ 'missing_applied_migrations' => 'Something went wrong; you should create an empty file <em>%s</em> manually.', // TODO - Translation
'ok' => 'Der Installationsvorgang war erfolgreich.',
'session' => array(
'nok' => 'The web server seems to be incorrectly configured for cookies required for PHP sessions!', // TODO - Translation
diff --git a/app/i18n/en-us/install.php b/app/i18n/en-us/install.php
index a6cbf4de7..8e6446128 100644
--- a/app/i18n/en-us/install.php
+++ b/app/i18n/en-us/install.php
@@ -111,7 +111,7 @@ return array(
'choose' => 'Choose a language for FreshRSS',
'defined' => 'Language has been defined.',
),
- 'not_deleted' => 'Something went wrong; you must delete the file <em>%s</em> manually.',
+ 'missing_applied_migrations' => 'Something went wrong; you should create an empty file <em>%s</em> manually.', // TODO - Translation
'ok' => 'The installation process was successful.',
'session' => array(
'nok' => 'The web server seems to be incorrectly configured for cookies required for PHP sessions!',
diff --git a/app/i18n/en/install.php b/app/i18n/en/install.php
index 13cf79066..c84f0ffaa 100644
--- a/app/i18n/en/install.php
+++ b/app/i18n/en/install.php
@@ -111,7 +111,7 @@ return array(
'choose' => 'Choose a language for FreshRSS',
'defined' => 'Language has been defined.',
),
- 'not_deleted' => 'Something went wrong; you must delete the file <em>%s</em> manually.',
+ 'missing_applied_migrations' => 'Something went wrong; you should create an empty file <em>%s</em> manually.',
'ok' => 'The installation process was successful.',
'session' => array(
'nok' => 'The web server seems to be incorrectly configured for cookies required for PHP sessions!',
diff --git a/app/i18n/es/install.php b/app/i18n/es/install.php
index 0a0b82ece..0d2985fdf 100755
--- a/app/i18n/es/install.php
+++ b/app/i18n/es/install.php
@@ -111,7 +111,7 @@ return array(
'choose' => 'Selecciona el idioma para FreshRSS',
'defined' => 'Idioma seleccionado.',
),
- 'not_deleted' => 'Parece que ha habido un error. Debes eliminar el archivo <em>%s</em> de forma manual.',
+ 'missing_applied_migrations' => 'Something went wrong; you should create an empty file <em>%s</em> manually.', // TODO - Translation
'ok' => 'La instalación se ha completado correctamente.',
'session' => array(
'nok' => 'The web server seems to be incorrectly configured for cookies required for PHP sessions!', // TODO - Translation
diff --git a/app/i18n/fr/install.php b/app/i18n/fr/install.php
index 970bbc451..977ef0fc2 100644
--- a/app/i18n/fr/install.php
+++ b/app/i18n/fr/install.php
@@ -111,7 +111,7 @@ return array(
'choose' => 'Choisissez la langue pour FreshRSS',
'defined' => 'La langue a bien été définie.',
),
- 'not_deleted' => 'Quelque chose s’est mal passé, vous devez supprimer le fichier <em>%s</em> à la main.',
+ 'missing_applied_migrations' => 'Quelque chose s’est mal passé, vous devriez créer le fichier <em>%s</em> à la main.',
'ok' => 'L’installation s’est bien passée.',
'session' => array(
'nok' => 'Le serveur Web semble mal configué pour les cookies nécessaires aux sessions PHP!',
diff --git a/app/i18n/he/install.php b/app/i18n/he/install.php
index 13ffd5a57..e4a6e6ee4 100644
--- a/app/i18n/he/install.php
+++ b/app/i18n/he/install.php
@@ -111,7 +111,7 @@ return array(
'choose' => 'בחירת שפה ל FreshRSS',
'defined' => 'השפה הוגדרה.',
),
- 'not_deleted' => 'משהו נכשל; יש צורך למחוק את הקובץ <em>%s</em> ידנית.',
+ 'missing_applied_migrations' => 'Something went wrong; you should create an empty file <em>%s</em> manually.', // TODO - Translation
'ok' => 'The installation process was successful.', // TODO - Translation
'session' => array(
'nok' => 'The web server seems to be incorrectly configured for cookies required for PHP sessions!', // TODO - Translation
diff --git a/app/i18n/it/install.php b/app/i18n/it/install.php
index f842976a7..4dcbfda96 100644
--- a/app/i18n/it/install.php
+++ b/app/i18n/it/install.php
@@ -111,7 +111,7 @@ return array(
'choose' => 'Seleziona la lingua per FreshRSS',
'defined' => 'Lingua impostata.',
),
- 'not_deleted' => 'Qualcosa non ha funzionato; devi cancellare il file <em>%s</em> manualmente.',
+ 'missing_applied_migrations' => 'Something went wrong; you should create an empty file <em>%s</em> manually.', // TODO - Translation
'ok' => 'Processo di installazione terminato con successo.',
'session' => array(
'nok' => 'The web server seems to be incorrectly configured for cookies required for PHP sessions!', // TODO - Translation
diff --git a/app/i18n/kr/install.php b/app/i18n/kr/install.php
index 77b4475fd..0406489b3 100644
--- a/app/i18n/kr/install.php
+++ b/app/i18n/kr/install.php
@@ -111,7 +111,7 @@ return array(
'choose' => 'FreshRSS에서 사용할 언어를 고르세요',
'defined' => '언어가 설정되었습니다.',
),
- 'not_deleted' => '무언가 잘못되었습니다; <em>%s</em> 파일을 직접 삭제해주세요.',
+ 'missing_applied_migrations' => 'Something went wrong; you should create an empty file <em>%s</em> manually.', // TODO - Translation
'ok' => '설치 과정이 성공적으로 끝났습니다.',
'session' => array(
'nok' => 'The web server seems to be incorrectly configured for cookies required for PHP sessions!', // TODO - Translation
diff --git a/app/i18n/nl/install.php b/app/i18n/nl/install.php
index 171a5a795..56b6f23e2 100644
--- a/app/i18n/nl/install.php
+++ b/app/i18n/nl/install.php
@@ -111,7 +111,7 @@ return array(
'choose' => 'Kies een taal voor FreshRSS',
'defined' => 'Taal is bepaald.',
),
- 'not_deleted' => 'Er ging iets fout! U moet het bestand <em>%s</em> handmatig verwijderen.',
+ 'missing_applied_migrations' => 'Something went wrong; you should create an empty file <em>%s</em> manually.', // TODO - Translation
'ok' => 'De installatieprocedure is geslaagd.',
'session' => array(
'nok' => 'De webserver lijkt niet goed te zijn geconfigureerd voor de cookies die voor PHP-sessies nodig zijn!',
diff --git a/app/i18n/oc/install.php b/app/i18n/oc/install.php
index 8da8c3624..072b55f0d 100644
--- a/app/i18n/oc/install.php
+++ b/app/i18n/oc/install.php
@@ -111,7 +111,7 @@ return array(
'choose' => 'Causissètz la lenga per FreshRSS',
'defined' => 'La lenga es corrèctament definida.',
),
- 'not_deleted' => 'Quicòm a trucat, sembla qu’avètz suprimit <em>%s</em> a la man.',
+ 'missing_applied_migrations' => 'Something went wrong; you should create an empty file <em>%s</em> manually.', // TODO - Translation
'ok' => 'L’installacion s’es corrèctament passada.',
'session' => array(
'nok' => 'Sembla que lo servidor web siá pas corrèctament configurat pels cookies per las sessions PHP !',
diff --git a/app/i18n/pl/install.php b/app/i18n/pl/install.php
index feec91917..244557f2f 100644
--- a/app/i18n/pl/install.php
+++ b/app/i18n/pl/install.php
@@ -111,7 +111,7 @@ return array(
'choose' => 'Choose a language for FreshRSS', // TODO - Translation
'defined' => 'Language has been defined.', // TODO - Translation
),
- 'not_deleted' => 'Something went wrong; you must delete the file <em>%s</em> manually.', // TODO - Translation
+ 'missing_applied_migrations' => 'Something went wrong; you should create an empty file <em>%s</em> manually.', // TODO - Translation
'ok' => 'The installation process was successful.', // TODO - Translation
'session' => array(
'nok' => 'The web server seems to be incorrectly configured for cookies required for PHP sessions!', // TODO - Translation
diff --git a/app/i18n/pt-br/install.php b/app/i18n/pt-br/install.php
index b2cd3854a..30cc03f44 100644
--- a/app/i18n/pt-br/install.php
+++ b/app/i18n/pt-br/install.php
@@ -111,7 +111,7 @@ return array(
'choose' => 'Escolha o idioma para o FreshRSS',
'defined' => 'O idioma foi definido.',
),
- 'not_deleted' => 'Algo deu errado; você deve deletar o arquivo <em>%s</em> manualmente.',
+ 'missing_applied_migrations' => 'Something went wrong; you should create an empty file <em>%s</em> manually.', // TODO - Translation
'ok' => 'O processo de instalação foi um sucesso.',
'session' => array(
'nok' => 'The web server seems to be incorrectly configured for cookies required for PHP sessions!', // TODO - Translation
diff --git a/app/i18n/ru/install.php b/app/i18n/ru/install.php
index c8c245601..3d666460d 100644
--- a/app/i18n/ru/install.php
+++ b/app/i18n/ru/install.php
@@ -111,7 +111,7 @@ return array(
'choose' => 'Выберите язык для FreshRSS',
'defined' => 'Язык выбран.',
),
- 'not_deleted' => 'Что-то пошло не так; удалите файл <em>%s</em> вручную.',
+ 'missing_applied_migrations' => 'Something went wrong; you should create an empty file <em>%s</em> manually.', // TODO - Translation
'ok' => 'Установка успешна.',
'session' => array(
'nok' => 'The web server seems to be incorrectly configured for cookies required for PHP sessions!', // TODO - Translation
diff --git a/app/i18n/sk/install.php b/app/i18n/sk/install.php
index 8ca6d4327..e6dffdb08 100644
--- a/app/i18n/sk/install.php
+++ b/app/i18n/sk/install.php
@@ -111,7 +111,7 @@ return array(
'choose' => 'Vyberte jazyk pre FreshRSS',
'defined' => 'Jazyk bol nastavený.',
),
- 'not_deleted' => 'Niečo sa nepodarilo. Musíte ručne zmazať súbor <em>%s</em>.',
+ 'missing_applied_migrations' => 'Something went wrong; you should create an empty file <em>%s</em> manually.', // TODO - Translation
'ok' => 'Inštalácia bola úspešná.',
'session' => array(
'nok' => 'The web server seems to be incorrectly configured for cookies required for PHP sessions!', // TODO - Translation
diff --git a/app/i18n/tr/install.php b/app/i18n/tr/install.php
index 86ec040c0..f5df0d6ab 100644
--- a/app/i18n/tr/install.php
+++ b/app/i18n/tr/install.php
@@ -111,7 +111,7 @@ return array(
'choose' => 'FreshRSS için bir dil seçin',
'defined' => 'Dil belirlendi.',
),
- 'not_deleted' => 'Hata meydana geldi; <em>%s</em> dosyasını elle silmelisiniz.',
+ 'missing_applied_migrations' => 'Something went wrong; you should create an empty file <em>%s</em> manually.', // TODO - Translation
'ok' => 'Kurulum başarıyla tamamlandı.',
'session' => array(
'nok' => 'The web server seems to be incorrectly configured for cookies required for PHP sessions!', // TODO - Translation
diff --git a/app/i18n/zh-cn/install.php b/app/i18n/zh-cn/install.php
index ff2a57618..dd37a7e57 100644
--- a/app/i18n/zh-cn/install.php
+++ b/app/i18n/zh-cn/install.php
@@ -111,7 +111,7 @@ return array(
'choose' => '为 FreshRSS 选择语言',
'defined' => '语言已指定',
),
- 'not_deleted' => '出现错误,你必须手动删除文件 <em>%s</em>',
+ 'missing_applied_migrations' => 'Something went wrong; you should create an empty file <em>%s</em> manually.', // TODO - Translation
'ok' => '安装成功',
'session' => array(
'nok' => 'Web 服务器似乎未正确配置 PHP 会话所需的 cookie!',
diff --git a/app/install.php b/app/install.php
index b7b309e1a..5a4f3359a 100644
--- a/app/install.php
+++ b/app/install.php
@@ -611,7 +611,10 @@ function printStep4() {
function printStep5() {
?>
- <p class="alert alert-error"><span class="alert-head"><?= _t('gen.short.damn') ?></span> <?= _t('install.not_deleted', DATA_PATH . '/do-install.txt') ?></p>
+ <p class="alert alert-error">
+ <span class="alert-head"><?= _t('gen.short.damn') ?></span>
+ <?= _t('install.missing_applied_migrations', DATA_PATH . '/applied_migrations.txt') ?>
+ </p>
<?php
}
@@ -636,7 +639,7 @@ case 3:
case 4:
break;
case 5:
- if (setupMigrations() && deleteInstall()) {
+ if (setupMigrations()) {
header('Location: index.php');
}
break;