summaryrefslogtreecommitdiffstats
path: root/db-update
diff options
context:
space:
mode:
Diffstat (limited to 'db-update')
-rwxr-xr-xdb-update8
1 files changed, 7 insertions, 1 deletions
diff --git a/db-update b/db-update
index bde0ee9..5d492fd 100755
--- a/db-update
+++ b/db-update
@@ -32,7 +32,13 @@ LOCKFILE="/tmp/.repolck.$arch.$reponame"
ADDPKGS=""
REMPKGS=""
-if [ ! `type -p fakeroot` ]; then
+if [ ! -d "$ftppath" ]; then
+ echo "FTP path for this repo ($reponame) is missing"
+ echo "Please contact a system administrator"
+ exit 1
+fi
+
+if [ ! $(type -p fakeroot) ]; then
echo "error: fakeroot is missing" >&2
exit 1
fi