]> 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>
Fri, 7 May 2021 10:21:29 +0000 (12:21 +0200)
 - 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 f7c1e36b988301ac54e92e3def1b5ee1cfad04e1..683e2f004232ea8b85a259b9b96e4cfde9d0c751 100644 (file)
@@ -315,17 +315,17 @@ 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-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-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
 
 uninstall: