Skip to content

Instantly share code, notes, and snippets.

@laf
Created May 10, 2015 21:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laf/29180c36583e509a04c8 to your computer and use it in GitHub Desktop.
Save laf/29180c36583e509a04c8 to your computer and use it in GitHub Desktop.
diff --git a/html/install.php b/html/install.php
index 09ff792..3b8e2ce 100644
--- a/html/install.php
+++ b/html/install.php
@@ -422,6 +422,9 @@ EOD;
fwrite($conf,$config_file);
echo("<div class='alert alert-success'>The config file has been created</div>");
}
+ } else {
+ echo("<div class='alert alert-danger'>We couldn't create the config.php file, please create this manually before continuing by copying the below into a config.php in the root directory of your install (typically /opt/librenms/)</div>");
+ echo("<pre>&lt;?php\n".stripslashes($config_file)."</pre>");
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment