please change operation of fo-postinstall per fossology-devel email discussion bet Bob & Vincent
|Assignee:||Dong Ma||% Done:||
On Apr 12, 2012, at 10:30 AM, Ma, Dong (Vincent, Open Source Program Office) wrote:
Vincent>> I am trying to avoid that but catch the issue to discuss with team. In my thought:
fossology-common > create user/groups
fossology-db > fo-postinstall –database > dbcreate
fossology-web > fo-postinstall –webonly --licenseref > fossinit –l and fo_dbcheck
fossology-scheduler > fo-postinstall –scheduleronly
fossology-ununpack/.. > fo-postinstall –agent but need to remove fo_dbcheck and create user/groups part.
I'm thinking along the same lines as you but what happens in --agent and --web would change:
fossology-common > runs fo-postinstall to create system user and group, create repository, set directory permissions
These are currently done in --web and --agent
like you said fossology-db > run fo-postinstall to create the db (dbcreate)
fossology-web > requires fossology-db, fossology-common; populates the db (like you said)
fossology-scheduler > requires fossology-db, fossology-common; fo-postinstall --scheduleronly
fossology-ununpack > requires fossology-db, fossology-common;
fossology-copyright > requires fossology-db, fossology-common;
I don't see why this wouldn't work for both single systems and clusters.
Mary and I were just talking about this and the only issue we could think of where we need to know if we are installing to a cluster or single system is really if we are installing to the db server or an agent. In other words, we need to know what to put in Db.conf for a host. fossology-db is never run on an agent machine but Db.conf needs to be manually updated on the agent to point to the db server host.
Updated by Mary Laser about 1 year ago
to elaborate on the statement, "fossology-common > runs fo-postinstall to create system user and group, create repository, set directory permissions"
repository directories are:
Also, must create a link called localhost that point to <hostname>:
ln -s <hostname> /srv/fossology/repository/localhost
Updated by Dong Ma about 1 year ago
- Status changed from New to Resolved
This bug have been fixed, about create a link called localhost point to <hostname>, I suggest manually configure it on cluster server.