Commit 5576025e authored by Max Wittig's avatar Max Wittig

feat(install): provide easy install script

This uses the instruction in the fossology wiki
https://github.com/fossology/fossology/wiki/Install-from-Source
parent 72f0be26
#!/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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment