From b9d2d8205c4cc7462fff95069a74464ee2bc8322 Mon Sep 17 00:00:00 2001 From: Scott Barninger Date: Mon, 29 Oct 2007 21:50:44 +0000 Subject: [PATCH] Correct installed permissions of sqlite database file. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5818 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/platforms/mandrake/bacula.spec.in | 4 +++- bacula/platforms/redhat/bacula.spec.in | 4 +++- bacula/platforms/suse/bacula.spec.in | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/bacula/platforms/mandrake/bacula.spec.in b/bacula/platforms/mandrake/bacula.spec.in index a636dc991c..fd176ac91a 100644 --- a/bacula/platforms/mandrake/bacula.spec.in +++ b/bacula/platforms/mandrake/bacula.spec.in @@ -13,7 +13,6 @@ # any patches for this release # be sure to check the setup section for patch macros - #-------------------------------------------------------------------------- # it should not be necessary to change anything below here for a release # except for patch macros in the setup section @@ -1697,6 +1696,7 @@ else echo "Hmm, doesn't look like you have an existing database." echo "Creating SQLite database..." %{script_dir}/create_sqlite_database + chown %{director_daemon_user}.%{daemon_group} %{working_dir}/bacula.db echo "Creating the SQLite tables..." %{script_dir}/make_sqlite_tables fi @@ -2024,6 +2024,8 @@ fi %endif %changelog +* Mon Oct 29 2007 D. Scott Barninger +- correct ownership when creating sqlite db file in post script * Sun Sep 16 2007 D. Scott Barninger - fix disable-batch-insert * Fri Sep 14 2007 D. Scott Barninger diff --git a/bacula/platforms/redhat/bacula.spec.in b/bacula/platforms/redhat/bacula.spec.in index a636dc991c..fd176ac91a 100644 --- a/bacula/platforms/redhat/bacula.spec.in +++ b/bacula/platforms/redhat/bacula.spec.in @@ -13,7 +13,6 @@ # any patches for this release # be sure to check the setup section for patch macros - #-------------------------------------------------------------------------- # it should not be necessary to change anything below here for a release # except for patch macros in the setup section @@ -1697,6 +1696,7 @@ else echo "Hmm, doesn't look like you have an existing database." echo "Creating SQLite database..." %{script_dir}/create_sqlite_database + chown %{director_daemon_user}.%{daemon_group} %{working_dir}/bacula.db echo "Creating the SQLite tables..." %{script_dir}/make_sqlite_tables fi @@ -2024,6 +2024,8 @@ fi %endif %changelog +* Mon Oct 29 2007 D. Scott Barninger +- correct ownership when creating sqlite db file in post script * Sun Sep 16 2007 D. Scott Barninger - fix disable-batch-insert * Fri Sep 14 2007 D. Scott Barninger diff --git a/bacula/platforms/suse/bacula.spec.in b/bacula/platforms/suse/bacula.spec.in index a636dc991c..fd176ac91a 100644 --- a/bacula/platforms/suse/bacula.spec.in +++ b/bacula/platforms/suse/bacula.spec.in @@ -13,7 +13,6 @@ # any patches for this release # be sure to check the setup section for patch macros - #-------------------------------------------------------------------------- # it should not be necessary to change anything below here for a release # except for patch macros in the setup section @@ -1697,6 +1696,7 @@ else echo "Hmm, doesn't look like you have an existing database." echo "Creating SQLite database..." %{script_dir}/create_sqlite_database + chown %{director_daemon_user}.%{daemon_group} %{working_dir}/bacula.db echo "Creating the SQLite tables..." %{script_dir}/make_sqlite_tables fi @@ -2024,6 +2024,8 @@ fi %endif %changelog +* Mon Oct 29 2007 D. Scott Barninger +- correct ownership when creating sqlite db file in post script * Sun Sep 16 2007 D. Scott Barninger - fix disable-batch-insert * Fri Sep 14 2007 D. Scott Barninger -- 2.39.5