View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000078 | bareos-core | General | public | 2013-02-17 11:29 | 2015-03-25 19:18 |
Reporter | mvwieringen | Assigned To | |||
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OpenIndiana | OS | OpenIndiana | OS Version | b151a |
Product Version | 12.4.2 | ||||
Fixed in Version | 12.4.2 | ||||
Summary | 0000078: bareos-config is not portable. | ||||
Description | We depend on the bareos-config script for the database scripts to determine the default config but its a bash script which doesn't make it particularly portable to all platform we directly support and even more for all platforms which the software used to work on. | ||||
Additional Information | Maybe we should just restore the original @DEFAULT_DB_TYPE@ fallback and only use the script on known supported platforms (Linux only ?) I already changed the make_catalog_backup script to use bareos-dbcheck to extract the default database from the current director config but for creation scripts for the database that would alter the native order you normally do for installing the software e.g. - install packages - create database - update configs if needed - start director | ||||
Tags | No tags attached. | ||||
what would be required to make the script plattform independent? Would is be enough, if the scripts is runable with "bash --posix", called by "/bin/sh"? What shell is available on all Unix plattforms? |
|
The only shell you can be sure off which is on every UNIX platform is the /bin/sh (e.g. bourne shell) most platforms have /bin/ksh (korn shell) but Linux has not (or a very shitty version called pdksh etc.) bash and zsh you see more and more you cannot depend on it because some systems have not. And most of the time you also don't need bash or zsh as a basic bourne or korn shell script is more the powerfull enough. No idea what bash --posix does I do see that you probably better test with zsh which if symlinked as sh will emulate a proper bourne shell and when linked as ksh as korn shell. If you want I can check on a platform where we have all shells also native bourne and korn shells but starting with zsh in emulation mode should be sufficient. It might be that not much need to be changed but at least the whole function determine stuff doesn't work on native bourne shell. |
|
I'll take a look at it in the following days. | |
Fix committed to bareos bareos-12.4 branch with changesetid 1004. | |
Fix committed to bareos2015 bareos-13.2 branch with changesetid 4332. | |
Due to the reimport of the Github repository to bugs.bareos.org, the status of some tickets have been changed. These tickets will be closed again. Sorry for the noise. |
|
bareos: bareos-12.4 4ae16dcf 2013-05-04 13:14 Committer: Ported: N/A Details Diff |
should work with /bin/sh and not only with /bin/bash fixes 0000078: bareos-config is not portable Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com> |
Affected Issues 0000078 |
|
mod - autoconf/configure.in | Diff File | ||
bareos: bareos-12.4 b153d31a 2013-05-04 13:14 Committer: Ported: N/A Details Diff |
should work with /bin/sh and not only with /bin/bash fixes 0000078: bareos-config is not portable Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com> |
Affected Issues 0000078 |
|
mod - scripts/bareos-config | Diff File | ||
bareos2015: bareos-12.4 6a41c855 2013-05-04 15:14 Committer: mvwieringen Ported: N/A Details Diff |
should work with /bin/sh and not only with /bin/bash fixes 0000078: bareos-config is not portable Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com> |
Affected Issues 0000078 |
|
mod - autoconf/configure.in | Diff File | ||
bareos2015: bareos-12.4 df363abd 2013-05-04 15:14 Committer: mvwieringen Ported: N/A Details Diff |
should work with /bin/sh and not only with /bin/bash fixes 0000078: bareos-config is not portable Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com> |
Affected Issues 0000078 |
|
mod - scripts/bareos-config | Diff File | ||
bareos: master af5129bf 2013-05-04 21:07 Committer: Ported: N/A Details Diff |
should work with /bin/sh and not only with /bin/bash fixes 0000078: bareos-config is not portable Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com> |
Affected Issues 0000078 |
|
mod - scripts/bareos-config | Diff File | ||
bareos: master 32bb7843 2013-05-04 21:07 Committer: Ported: N/A Details Diff |
should work with /bin/sh and not only with /bin/bash fixes 0000078: bareos-config is not portable Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com> |
Affected Issues 0000078 |
|
mod - autoconf/configure.in | Diff File | ||
bareos2015: bareos-13.2 cd21e978 2013-05-04 23:07 Committer: mvwieringen Ported: N/A Details Diff |
should work with /bin/sh and not only with /bin/bash fixes 0000078: bareos-config is not portable Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com> |
Affected Issues 0000078 |
|
mod - scripts/bareos-config | Diff File | ||
bareos2015: bareos-13.2 1b8fcb16 2013-05-04 23:07 Committer: mvwieringen Ported: N/A Details Diff |
should work with /bin/sh and not only with /bin/bash fixes 0000078: bareos-config is not portable Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com> |
Affected Issues 0000078 |
|
mod - autoconf/configure.in | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2013-02-17 11:29 | mvwieringen | New Issue | |
2013-02-17 20:04 | joergs | Note Added: 0000119 | |
2013-02-17 20:48 | mvwieringen | Note Added: 0000122 | |
2013-02-17 22:39 | joergs | Assigned To | => joergs |
2013-02-17 22:39 | joergs | Status | new => assigned |
2013-02-17 22:39 | joergs | Note Added: 0000125 | |
2013-02-25 19:19 | mvwieringen | Changeset attached | => bareos master 4356a7f4 |
2013-02-25 19:19 | mvwieringen | Assigned To | joergs => mvwieringen |
2013-02-25 19:19 | mvwieringen | Status | assigned => closed |
2013-02-25 19:19 | mvwieringen | Resolution | open => fixed |
2013-02-25 19:19 | mvwieringen | Assigned To | mvwieringen => |
2013-02-25 19:42 | mvwieringen | Changeset attached | => bareos master c1f72321 |
2013-02-25 19:42 | mvwieringen | Assigned To | => mvwieringen |
2013-02-25 19:44 | mvwieringen | Assigned To | mvwieringen => |
2013-02-28 10:16 | mvwieringen | Changeset attached | => bareos Branch-12.4 4098025e |
2013-02-28 10:16 | mvwieringen | Changeset attached | => bareos Branch-12.4 56cbf929 |
2013-02-28 10:16 | mvwieringen | Assigned To | => mvwieringen |
2013-02-28 10:19 | mvwieringen | Assigned To | mvwieringen => |
2013-03-04 10:15 | mvwieringen | Product Version | => 12.4.2 |
2013-03-04 10:15 | mvwieringen | Fixed in Version | => 12.4.2 |
2013-08-13 03:12 |
|
Changeset attached | => bareos master 32bb7843 |
2013-08-13 03:12 |
|
Changeset attached | => bareos master af5129bf |
2013-08-13 03:12 |
|
Changeset attached | => bareos bareos-12.4 4ae16dcf |
2013-08-13 03:12 |
|
Changeset attached | => bareos bareos-12.4 b153d31a |
2013-08-13 03:12 |
|
Note Added: 0000615 | |
2013-08-13 03:12 |
|
Assigned To | => mvwieringen adm |
2013-08-13 03:12 |
|
Status | closed => resolved |
2013-08-13 09:07 |
|
Assigned To | mvwieringen adm => |
2013-08-13 09:07 |
|
Status | resolved => closed |
2015-03-25 16:51 | mvwieringen | Changeset attached | => bareos2015 bareos-12.4 6a41c855 |
2015-03-25 16:51 | mvwieringen | Changeset attached | => bareos2015 bareos-12.4 df363abd |
2015-03-25 16:51 | mvwieringen | Changeset attached | => bareos2015 bareos-13.2 1b8fcb16 |
2015-03-25 16:51 | mvwieringen | Changeset attached | => bareos2015 bareos-13.2 cd21e978 |
2015-03-25 16:51 | mvwieringen | Note Added: 0001395 | |
2015-03-25 16:51 | mvwieringen | Status | closed => resolved |
2015-03-25 19:18 | joergs | Note Added: 0001548 | |
2015-03-25 19:18 | joergs | Status | resolved => closed |