]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix various default permissions
authorEric Bollengier <eric@baculasystems.com>
Fri, 7 May 2021 10:21:26 +0000 (12:21 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:03:01 +0000 (09:03 +0100)
 - Use 755 on SQL scripts
 - Use 755 for Cloud plugins/libraries
 - Use 755 for catalog backup scripts

bacula/autoconf/Make.common.in
bacula/src/cats/Makefile.in
bacula/src/stored/Makefile.in

index 351352b3162bb57b9a6507b40de2f8d228c59ab8..b6d3e56300f955f29fd4aa8a27bb042122c3c50e 100644 (file)
@@ -65,6 +65,7 @@ INSTALL_PROGRAM_ALL = $(INSTALL) -m 755
 INSTALL_LIB = $(INSTALL) -m 755
 INSTALL_DATA = $(INSTALL) -m 644
 INSTALL_SCRIPT = $(INSTALL) -m @SBINPERM@
+INSTALL_OSCRIPT = $(INSTALL) -m 755
 INSTALL_CONFIG = $(INSTALL) -m 660
 
 #
index 3a9aaec03f78e09eb8f0400a2ef6ab27261c4bff..4955436e8ab9fdf1e9d6f59781a3f5de43219096 100644 (file)
@@ -224,21 +224,21 @@ libtool-uninstall:
 install: @LIBTOOL_INSTALL_TARGET@ @INCLUDE_INSTALL_TARGET@
        for db_type in @DB_BACKENDS@; do \
            if [ -f create_$${db_type}_database ]; then \
-           $(INSTALL_SCRIPT) create_$${db_type}_database $(DESTDIR)$(scriptdir)/create_$${db_type}_database; \
-           $(INSTALL_SCRIPT) update_$${db_type}_tables $(DESTDIR)$(scriptdir)/update_$${db_type}_tables; \
-           $(INSTALL_SCRIPT) make_$${db_type}_tables $(DESTDIR)$(scriptdir)/make_$${db_type}_tables; \
-           $(INSTALL_SCRIPT) grant_$${db_type}_privileges $(DESTDIR)$(scriptdir)/grant_$${db_type}_privileges; \
-           $(INSTALL_SCRIPT) drop_$${db_type}_tables $(DESTDIR)$(scriptdir)/drop_$${db_type}_tables; \
-           $(INSTALL_SCRIPT) drop_$${db_type}_database $(DESTDIR)$(scriptdir)/drop_$${db_type}_database; \
+           $(INSTALL_OSCRIPT) create_$${db_type}_database $(DESTDIR)$(scriptdir)/create_$${db_type}_database; \
+           $(INSTALL_OSCRIPT) update_$${db_type}_tables $(DESTDIR)$(scriptdir)/update_$${db_type}_tables; \
+           $(INSTALL_OSCRIPT) make_$${db_type}_tables $(DESTDIR)$(scriptdir)/make_$${db_type}_tables; \
+           $(INSTALL_OSCRIPT) grant_$${db_type}_privileges $(DESTDIR)$(scriptdir)/grant_$${db_type}_privileges; \
+           $(INSTALL_OSCRIPT) drop_$${db_type}_tables $(DESTDIR)$(scriptdir)/drop_$${db_type}_tables; \
+           $(INSTALL_OSCRIPT) drop_$${db_type}_database $(DESTDIR)$(scriptdir)/drop_$${db_type}_database; \
            fi; \
        done
 
-       $(INSTALL_SCRIPT) create_bacula_database $(DESTDIR)$(scriptdir)/create_bacula_database
-       $(INSTALL_SCRIPT) update_bacula_tables $(DESTDIR)$(scriptdir)/update_bacula_tables
-       $(INSTALL_SCRIPT) make_bacula_tables $(DESTDIR)$(scriptdir)/make_bacula_tables
-       $(INSTALL_SCRIPT) grant_bacula_privileges $(DESTDIR)$(scriptdir)/grant_bacula_privileges
-       $(INSTALL_SCRIPT) drop_bacula_tables $(DESTDIR)$(scriptdir)/drop_bacula_tables
-       $(INSTALL_SCRIPT) drop_bacula_database $(DESTDIR)$(scriptdir)/drop_bacula_database
+       $(INSTALL_OSCRIPT) create_bacula_database $(DESTDIR)$(scriptdir)/create_bacula_database
+       $(INSTALL_OSCRIPT) update_bacula_tables $(DESTDIR)$(scriptdir)/update_bacula_tables
+       $(INSTALL_OSCRIPT) make_bacula_tables $(DESTDIR)$(scriptdir)/make_bacula_tables
+       $(INSTALL_OSCRIPT) grant_bacula_privileges $(DESTDIR)$(scriptdir)/grant_bacula_privileges
+       $(INSTALL_OSCRIPT) drop_bacula_tables $(DESTDIR)$(scriptdir)/drop_bacula_tables
+       $(INSTALL_OSCRIPT) drop_bacula_database $(DESTDIR)$(scriptdir)/drop_bacula_database
 
        @filename=make_catalog_backup.pl; \
           if  test -f $(DESTDIR)$(scriptdir)/$$filename; then \
@@ -247,8 +247,8 @@ install: @LIBTOOL_INSTALL_TARGET@ @INCLUDE_INSTALL_TARGET@
           else \
              destname=$$filename; \
           fi; \
-          echo "$(INSTALL_SCRIPT) $$filename $(DESTDIR)$(scriptdir)/$$destname"; \
-          $(INSTALL_SCRIPT) $$filename $(DESTDIR)$(scriptdir)/$$destname
+          echo "$(INSTALL_OSCRIPT) $$filename $(DESTDIR)$(scriptdir)/$$destname"; \
+          $(INSTALL_OSCRIPT) $$filename $(DESTDIR)$(scriptdir)/$$destname
        @filename=make_catalog_backup; \
           if  test -f $(DESTDIR)$(scriptdir)/$$filename; then \
              destname=$$filename.new; \
@@ -256,8 +256,8 @@ install: @LIBTOOL_INSTALL_TARGET@ @INCLUDE_INSTALL_TARGET@
           else \
              destname=$$filename; \
           fi; \
-          echo "$(INSTALL_SCRIPT) $$filename $(DESTDIR)$(scriptdir)/$$destname"; \
-          $(INSTALL_SCRIPT) $$filename $(DESTDIR)$(scriptdir)/$$destname
+          echo "$(INSTALL_OSCRIPT) $$filename $(DESTDIR)$(scriptdir)/$$destname"; \
+          $(INSTALL_OSCRIPT) $$filename $(DESTDIR)$(scriptdir)/$$destname
        @filename=delete_catalog_backup; \
           if  test -f $(DESTDIR)$(scriptdir)/$$filename; then \
              destname=$$filename.new; \
@@ -265,8 +265,8 @@ install: @LIBTOOL_INSTALL_TARGET@ @INCLUDE_INSTALL_TARGET@
           else \
              destname=$$filename; \
           fi; \
-          echo "$(INSTALL_SCRIPT) $$filename $(DESTDIR)$(scriptdir)/$$destname"; \
-          $(INSTALL_SCRIPT) $$filename $(DESTDIR)$(scriptdir)/$$destname
+          echo "$(INSTALL_OSCRIPT) $$filename $(DESTDIR)$(scriptdir)/$$destname"; \
+          $(INSTALL_OSCRIPT) $$filename $(DESTDIR)$(scriptdir)/$$destname
 
 uninstall: @LIBTOOL_UNINSTALL_TARGET@ @INCLUDE_UNINSTALL_TARGET@
        @for db_type in @DB_BACKENDS@; do \
index 91a423dc9e6a66b8c34f7b2b2e2b25e54751b409..af7b5f9bb299af517a0c1f974728dbc8aa409fef 100644 (file)
@@ -414,7 +414,7 @@ install-bcloud: bcloud
 
 install-cloud: bacula-sd-cloud-driver.la
        $(MKDIR) $(DESTDIR)$(plugindir)
-       $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) bacula-sd-cloud-driver$(DEFAULT_SHARED_OBJECT_TYPE) $(DESTDIR)$(plugindir)
+       $(LIBTOOL_INSTALL) $(INSTALL_LIB) bacula-sd-cloud-driver$(DEFAULT_SHARED_OBJECT_TYPE) $(DESTDIR)$(plugindir)
        $(RMF) $(DESTDIR)$(plugindir)/bacula-sd-cloud-driver.la
 
 install-was-cloud: bacula-sd-cloud-was-driver.la
@@ -424,7 +424,7 @@ install-was-cloud: bacula-sd-cloud-was-driver.la
 
 install-s3-cloud: bacula-sd-cloud-s3-driver.la
        $(MKDIR) $(DESTDIR)$(plugindir)
-       $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) bacula-sd-cloud-s3-driver$(DEFAULT_SHARED_OBJECT_TYPE) $(DESTDIR)$(plugindir)
+       $(LIBTOOL_INSTALL) $(INSTALL_LIB) bacula-sd-cloud-s3-driver$(DEFAULT_SHARED_OBJECT_TYPE) $(DESTDIR)$(plugindir)
        $(RMF) $(DESTDIR)$(plugindir)/bacula-sd-cloud-s3-driver.la
 
 install-s3-glacier-cloud: bacula-sd-cloud-glacier-s3-driver.la
@@ -454,7 +454,7 @@ install-swift-cloud: bacula-sd-cloud-swift-driver.la
 
 install-aligned:  bacula-sd-aligned-driver.la
        $(MKDIR) $(DESTDIR)$(plugindir)
-       $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) bacula-sd-aligned-driver$(DEFAULT_SHARED_OBJECT_TYPE) $(DESTDIR)$(plugindir)
+       $(LIBTOOL_INSTALL) $(INSTALL_LIB) bacula-sd-aligned-driver$(DEFAULT_SHARED_OBJECT_TYPE) $(DESTDIR)$(plugindir)
        $(RMF) $(DESTDIR)$(plugindir)/bacula-sd-aligned-driver.la
 
 install-dedup: bacula-sd-dedup-driver.la