-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.php
More file actions
40 lines (37 loc) · 1.72 KB
/
Copy pathinstall.php
File metadata and controls
40 lines (37 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/*
+--------------------------------------------------------------------+
| WFA version 1.0 |
+--------------------------------------------------------------------+
| Copyright 3S1J (c) 2016 |
+--------------------------------------------------------------------+
| This file is a part of WFA. |
| |
| Web framework for workflow automation (WFA) is free software; |
| you can copy, modify, and distribute it under the terms of |
| MIT License. |
| |
| WFA is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the MIT License in the LICENSE document for more details. |
| |
| You should have received a copy of the MIT License along with |
| this program; if not, contact WFA at wfa.cs243[AT]gmail[DOT]com. |
+--------------------------------------------------------------------+
*/
/**
*
* @package WFA
* @copyright 3S1J (c) 2016
*/
require_once('vendor/autoload.php');
$databaseHostname = $argv[1];
$databaseUsername = $argv[2];
if (isset($argv[3])) {
$databasePassword = $argv[3];
} else {
$databasePassword = "";
}
// Set up database and save the config file.
echo \WFA\Settings::setUpDatabase($databaseHostname, $databaseUsername, $databasePassword);