aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cli/_cli.php
diff options
context:
space:
mode:
authorAlexandre Alapetite <alexandre@alapetite.fr>2016-10-24 01:41:09 +0200
committerAlexandre Alapetite <alexandre@alapetite.fr>2016-10-24 01:41:09 +0200
commitab4ece6780cf841f6ce4e89f7b81a1ff1661f615 (patch)
tree61b7f383d2d9749bc19e4154dcb0407f88785314 /cli/_cli.php
parent1f03e8a3aec8ff4b7bbba45bc3fd14a0552c2bc4 (diff)
downloadfreshrss-ab4ece6780cf841f6ce4e89f7b81a1ff1661f615.tar.gz
freshrss-ab4ece6780cf841f6ce4e89f7b81a1ff1661f615.zip
CLI do-install
https://github.com/FreshRSS/FreshRSS/issues/1095 https://github.com/FreshRSS/FreshRSS/issues/1090
Diffstat (limited to 'cli/_cli.php')
-rw-r--r--cli/_cli.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/cli/_cli.php b/cli/_cli.php
index 66506f07a..7d1a7c6b2 100644
--- a/cli/_cli.php
+++ b/cli/_cli.php
@@ -38,7 +38,12 @@ function cliInitUser($username) {
return $username;
}
-function done($ok) {
+function accessRights() {
+ echo '• Remember to re-apply the appropriate access rights, such as:' , "\n",
+ "\t", 'sudo chown -R :www-data . && sudo chmod -R g+r . && sudo chmod -R g+w ./data/', "\n";
+}
+
+function done($ok = true) {
fwrite(STDERR, 'Result: ' . ($ok ? 'success' : 'fail') . "\n");
exit($ok ? 0 : 1);
}