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_)?connection( )?=.*" ${SAHARA_CONF} || \ grep -qE "^(sql_)?connection.*sqlite.*" ${SAHARA_CONF}; then su -s /bin/sh -c 'sahara-db-manage --config-file /etc/sahara/sahara.conf upgrade head' 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.0-0ubuntu1~cloud0 Candidate: 2015.1.0-0ubuntu1~cloud0 Version table: *** 2015.1.0-0ubuntu1~cloud0 0 500 http://ubuntu-cloud.archive.canonical.com/ubuntu/ trusty-proposed/kilo/main amd64 Packages 100 /var/lib/dpkg/status 2015.1~rc1-0ubuntu1~cloud0 0 500 http://ubuntu-cloud.archive.canonical.com/ubuntu/ trusty-updates/kilo/main amd64 Packages
Regards Tino
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_ )?connection( )?=.*" ${SAHARA_CONF} || \ )?connection. *sqlite. *" ${SAHARA_CONF}; then sahara. conf upgrade head' sahara
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 0-0ubuntu1~ cloud0 0-0ubuntu1~ cloud0 0-0ubuntu1~ cloud0 0 ubuntu- cloud.archive. canonical. com/ubuntu/ trusty- proposed/ kilo/main amd64 Packages dpkg/status 1~rc1-0ubuntu1~ cloud0 0 ubuntu- cloud.archive. canonical. com/ubuntu/ trusty- updates/ kilo/main amd64 Packages
sahara-common:
Installed: 2015.1.
Candidate: 2015.1.
Version table:
*** 2015.1.
500 http://
100 /var/lib/
2015.
500 http://
Regards
Tino