From 1b6423cdb5734cc31b462bdbfadd94deebc3fef7 Mon Sep 17 00:00:00 2001 From: David Spencer Date: Sat, 5 Aug 2017 21:30:37 +0100 Subject: system/bareos: Fix install with ROOT=. Signed-off-by: David Spencer --- system/bareos/bareos.SlackBuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system') diff --git a/system/bareos/bareos.SlackBuild b/system/bareos/bareos.SlackBuild index 40662da7d9..4bfbcd5eaf 100644 --- a/system/bareos/bareos.SlackBuild +++ b/system/bareos/bareos.SlackBuild @@ -214,7 +214,7 @@ cat $CWD/README.SLACKWARE > $PKG/usr/doc/$PRGNAM-$VERSION/README.SLACKWARE mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh -sed -i "s#%sysconfdir%#$SYSCONFDIR#g" $PKG/install/doinst.sh +sed -i "s#%sysconfdir%#$(echo "$SYSCONFDIR" | sed 's:^/*::')#g" $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} -- cgit v1.2.3