From 11e2c4ecdaa5999b8f349eb059e3fe6456bf9483 Mon Sep 17 00:00:00 2001 From: Ben Walton Date: Fri, 15 Apr 2011 14:42:08 -0400 Subject: [PATCH] Ensure the directories for solaris init scripts are created Now that DESTDIR is used for the init script installation, we need to ensure the directories exist prior to placing files in them. Signed-off-by: Ben Walton --- bacula/platforms/solaris/Makefile.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bacula/platforms/solaris/Makefile.in b/bacula/platforms/solaris/Makefile.in index 25f3a97e77..4347e4707b 100644 --- a/bacula/platforms/solaris/Makefile.in +++ b/bacula/platforms/solaris/Makefile.in @@ -12,6 +12,7 @@ INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_DIR = $(INSTALL) -d -m 755 nothing: @@ -23,6 +24,9 @@ install-autostart-%: @rm -f $(DESTDIR)/etc/rc0.d/K20bacula-$* @rm -f $(DESTDIR)/etc/rc1.d/S99bacula-$* @rm -f $(DESTDIR)/etc/rc2.d/S99bacula-$* + @$(INSTALL_DIR) $(DESTDIR)/etc/init.d + @$(INSTALL_DIR) $(DESTDIR)/etc/rc0.d $(DESTDIR)/etc/rc1.d \ + $(DESTDIR)/etc/rc2.d @$(INSTALL_PROGRAM) -m 744 bacula-$* $(DESTDIR)/etc/init.d/bacula-$* # set symlinks for script at startup and shutdown @ln -f -s /etc/init.d/bacula-$* $(DESTDIR)/etc/rc0.d/K20bacula-$* -- 2.39.5