[SRU] Issue in sahara-common.postinst.in: sahara-db-manage is executet on fresh install (even without a db-connection)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sahara (Ubuntu) |
Fix Released
|
High
|
Denis Egorenko |
Bug Description
Hi there,
i dont know if this is the right place for this bug-report!?
But the following script-lines will execute sahara-db-manage, even on an fresh install without any configured db-connection.
if ! grep -qE "^(sql_
grep -qE "^(sql_
su -s /bin/sh -c 'sahara-db-manage --config-file /etc/sahara/
fi
Becuse the default is:
#connection=<None>
and this matches the negated grep .
# lsb_release -rd
Description: Ubuntu 14.04.2 LTS
Release: 14.04
# apt-cache policy sahara-common
sahara-common:
Installed: 2015.1.
Candidate: 2015.1.
Version table:
*** 2015.1.
500 http://
100 /var/lib/
2015.
500 http://
Regards
Tino
[Impact]
sahara install fails with:
Traceback (most recent call last):
File "/usr/bin/
sys.
...
File "/usr/local/
entrypoint = u._get_entrypoint()
AttributeError: 'NoneType' object has no attribute '_get_entrypoint'
[Test Case]
apt-get install sahara
[Regression Potential]
Minimal regression impact. The difference after this change is that the user (or installation tool) will need to run 'sahara-db-manage' after sahara is installed and configured to create the database schema.
Related branches
- Corey Bryant: Approve
- Chuck Short: Pending requested
-
Diff: 31 lines (+9/-4)2 files modifieddebian/changelog (+9/-0)
debian/sahara-common.postinst.in (+0/-4)
Changed in sahara (Ubuntu): | |
importance: | Undecided → High |
summary: |
- Issue in sahara-common.postinst.in: sahara-db-manage is executet on - fresh install (even without a db-connection) + [SRU] Issue in sahara-common.postinst.in: sahara-db-manage is executet + on fresh install (even without a db-connection) |
description: | updated |
Status changed to 'Confirmed' because the bug affects multiple users.