Skip to content

Conversation

max-wittig
Copy link
Contributor

This uses the instruction in the fossology wiki
https://github.com/fossology/fossology/wiki/Install-from-Source

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 cp install/src-install-apache-example.conf /etc/apache2/sites-enabled/fossology.conf
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use a2ensite, which creates the corresponding symlink

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know if that's the right way, because a2ensite only works on debian based systems.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then please symlink via

ln -s /etc/apache2/sites-available/fossology.conf /etc/apache2/sites-enabled/fossology.conf

That is the expected way of placing the config in sites-enabled.

This will only work on some systems (e.g. the debian based ones), other systems (e.g. RHEL) might use /etc/httpd/conf.d/ instead of /etc/apache2/sites-enabled/.

make clean
sudo utils/fo-installdeps
make
sudo make install && sudo /usr/local/lib/fossology/fo-postinstall
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here is the && unnecessary, just use a newline

@max-wittig max-wittig force-pushed the feat/easy-install branch from 90e77ff to 5576025 Compare July 3, 2017 13:12
@max-wittig max-wittig assigned max-wittig and unassigned max-wittig Jul 7, 2017
@max-wittig
Copy link
Contributor Author

(followup from discussion): actually it's okay how it is. No user-data is deleted and the offical wiki also references fo-cleanold without parameters as first step.

# 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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that is maybe dangerous - I am not sure users would expect that deletion of the database, just not cleaning the DB would be OK

@mcjaeger mcjaeger merged commit 30c9c6f into fossology:master Jul 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants