diff options
author | Thomas Citharel <tcit@tcit.fr> | 2015-02-16 12:56:39 +0100 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2015-02-16 12:56:39 +0100 |
commit | 467503fb2ad5904d9c4ef54bf20218937081f3a2 (patch) | |
tree | 055e68e301faae77764dcc2a2c425e2f12f07aeb | |
parent | 6b60741600321e4a2c414e91595b09d35516a3ea (diff) | |
download | wallabag-467503fb2ad5904d9c4ef54bf20218937081f3a2.tar.gz wallabag-467503fb2ad5904d9c4ef54bf20218937081f3a2.tar.zst wallabag-467503fb2ad5904d9c4ef54bf20218937081f3a2.zip |
added warnings on install script on file permissions if writing fails
-rwxr-xr-x | install/index.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/install/index.php b/install/index.php index 31c15f89..94cf50ac 100755 --- a/install/index.php +++ b/install/index.php | |||
@@ -68,7 +68,7 @@ else if (isset($_POST['install'])) { | |||
68 | 68 | ||
69 | if ($_POST['db_engine'] == 'sqlite') { | 69 | if ($_POST['db_engine'] == 'sqlite') { |
70 | if (!copy('install/poche.sqlite', 'db/poche.sqlite')) { | 70 | if (!copy('install/poche.sqlite', 'db/poche.sqlite')) { |
71 | $errors[] = 'Impossible to create the SQLite database file.'; | 71 | $errors[] = 'Impossible to create the SQLite database file. Please check your file permissions.'; |
72 | } | 72 | } |
73 | else { | 73 | else { |
74 | $db_path = 'sqlite:' . realpath('') . '/db/poche.sqlite'; | 74 | $db_path = 'sqlite:' . realpath('') . '/db/poche.sqlite'; |
@@ -160,7 +160,7 @@ else if (isset($_POST['install'])) { | |||
160 | 160 | ||
161 | 161 | ||
162 | if (!copy('inc/poche/config.inc.default.php', 'inc/poche/config.inc.php')) { | 162 | if (!copy('inc/poche/config.inc.default.php', 'inc/poche/config.inc.php')) { |
163 | $errors[] = 'Installation aborted, impossible to create inc/poche/config.inc.php file. Maybe you don\'t have write access to create it.'; | 163 | $errors[] = 'Installation aborted, impossible to create inc/poche/config.inc.php file. Maybe you don\'t have write access to create it. Check your file permissions.'; |
164 | } else { | 164 | } else { |
165 | if ($_POST['db_engine'] != 'sqlite') { | 165 | if ($_POST['db_engine'] != 'sqlite') { |
166 | $content = str_replace("define ('STORAGE', 'sqlite');", "define ('STORAGE', '".$_POST['db_engine']."');", $content); | 166 | $content = str_replace("define ('STORAGE', 'sqlite');", "define ('STORAGE', '".$_POST['db_engine']."');", $content); |
@@ -407,7 +407,7 @@ border: 1px solid #000; | |||
407 | <div class='messages success install'> | 407 | <div class='messages success install'> |
408 | <p> | 408 | <p> |
409 | <a href="index.php?clean=0">Click here to finish update.</a><br> | 409 | <a href="index.php?clean=0">Click here to finish update.</a><br> |
410 | If it fails, just delete the install directory. | 410 | If it fails, check your file permissions or just delete the install directory. |
411 | </p> | 411 | </p> |
412 | <p>You may have to clear cache (by going into config screen) after update.</p> | 412 | <p>You may have to clear cache (by going into config screen) after update.</p> |
413 | </div> | 413 | </div> |