summaryrefslogtreecommitdiff
path: root/system/bareos
diff options
context:
space:
mode:
authorDavid Spencer <idlemoor@slackbuilds.org>2016-08-07 11:55:51 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-08-07 18:55:39 +0700
commit6baec51f3508c3dd4ca460e2bdd6fdb0a49c6f99 (patch)
tree95f7da6233be5df2d3be98e079739f89e1edf921 /system/bareos
parent29bd467a919aff92ea371a0bedc6e01d2decafe7 (diff)
downloadslackbuilds-6baec51f3508c3dd4ca460e2bdd6fdb0a49c6f99.tar.gz
system/bareos: Fixed tarball handling.
Also, exit with status 1 if group or user not found. Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'system/bareos')
-rw-r--r--system/bareos/bareos.SlackBuild6
1 files changed, 3 insertions, 3 deletions
diff --git a/system/bareos/bareos.SlackBuild b/system/bareos/bareos.SlackBuild
index 5e32ae968d..40662da7d9 100644
--- a/system/bareos/bareos.SlackBuild
+++ b/system/bareos/bareos.SlackBuild
@@ -110,7 +110,7 @@ cat << EOF
EOF
- exit
+ exit 1
elif ! grep ^bareos: /etc/group 2>&1 > /dev/null; then
cat << EOF
@@ -121,14 +121,14 @@ cat << EOF
EOF
- exit
+ exit 1
fi
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-Release-$VERSION
-tar xvf $CWD/$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-Release-$VERSION.tar.gz || tar xvf $CWD/$VERSION.tar.gz
cd $PRGNAM-Release-$VERSION
chown -R root:root .
find -L . \