forked from fossology/fossology
-
Notifications
You must be signed in to change notification settings - Fork 0
/
easy-install
executable file
·29 lines (28 loc) · 1018 Bytes
/
easy-install
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
#!/bin/bash
# FOSSology Easy Install script
# Copyright Siemens AG 2017
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved. This file is offered as-is,
# without any warranty.
#
# Description: Easy install script for fossology. Goes through the steps on the Fossology wiki
set -e
cd "$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"/..
sudo utils/fo-cleanold
make clean
sudo utils/fo-installdeps
make
sudo make install
sudo /usr/local/lib/fossology/fo-postinstall
sudo cp install/src-install-apache-example.conf /etc/apache2/sites-available/fossology.conf
sudo ln -s /etc/apache2/sites-available/fossology.conf /etc/apache2/sites-enabled/fossology.conf
sudo install/scripts/php-conf-fix.sh --overwrite
sudo /etc/init.d/apache2 restart
sudo /etc/init.d/fossology restart
# open fossology page, if X server is installed
if [ -n ${DISPLAY} ]
then
xdg-open http://localhost/repo &disown
fi