Skip to content

Commit ebaca7e

Browse files
committed
Add a minimal install option (no Apache)
Now that we have a CLI, the web UI is optional. Well, optional in the sense that you don't strictly need it, but truth be told it is still a lot nicer to use. But, maybe you don't want to run a web server on your machine, or maybe you want to do the analysis on one system and display it using another. This should all be possible now. Signed-off-by: Brian Warner <brian@bdwarner.com>
1 parent 93eb8d2 commit ebaca7e

2 files changed

Lines changed: 52 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,21 @@
1616
#
1717
# SPDX-License-Identifier: Apache-2.0
1818

19+
echo "
20+
This script will install the necessary dependencies to run Facade in either
21+
headless mode or using the web UI. It will install Apache and the required PHP
22+
packages. You can use either the web UI or the CLI to configure Facade and
23+
export analysis data.
24+
25+
Installing any missing dependencies...
26+
"
1927

2028
sudo apt-get install apache2 mysql-client mysql-server php-cli php-mysql \
2129
python3 python3-mysqldb libapache2-mod-php php-dom php-curl python3-bcrypt \
2230
python3-xlsxwriter python3-texttable
2331

32+
echo "
33+
If everything went well, your next step is to run setup:
34+
$ ./setup.py
35+
"
36+

utilities/install_deps-minimal.sh

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#!/bin/bash
2+
3+
# Copyright 2016-2018 Brian Warner
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# SPDX-License-Identifier: Apache-2.0
18+
19+
echo "
20+
This script will install the necessary dependencies to run Facade in headless
21+
mode. This means that it will not install Apache or the required PHP packages.
22+
You must use the CLI to configure Facade and export analysis data, which is
23+
available in cli/facade.py
24+
25+
You can always convert to a full installation by running the full script to fill
26+
in any missing packages, should you change your mind later:
27+
$ ./install_deps-deb-full.sh
28+
29+
Installing any missing dependencies...
30+
"
31+
32+
sudo apt-get install mysql-client mysql-server \
33+
python3 python3-mysqldb python3-bcrypt python3-xlsxwriter python3-texttable
34+
35+
echo "
36+
If everything went well, your next step is to run setup:
37+
$ ./setup.py
38+
"
39+

0 commit comments

Comments
 (0)