From 89b7b67a13ebb7965cc7f13ad0595e2194a2d34c Mon Sep 17 00:00:00 2001 From: Jannis Hoffmann Date: Wed, 3 Jul 2024 15:48:04 +0200 Subject: add sqmail-4.2.29a --- package/dir | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 package/dir (limited to 'package/dir') diff --git a/package/dir b/package/dir new file mode 100755 index 0000000..ab9b8a0 --- /dev/null +++ b/package/dir @@ -0,0 +1,19 @@ +#!/bin/sh +shout() { echo "$0: $@" >&2; } +barf() { shout "fatal: $@"; exit 111; } +safe() { "$@" || barf "cannot $@"; } + +here=`env - PATH=$PATH pwd` +mypwd=${here%package} +mypwd=${mypwd%/} +home=`head -1 $mypwd/conf-home` + +if [ -d $home ] +then + shout "Keeping directory $home." + shout "The queue directory will use now bigtodo ..." +else + safe mkdir -p $home +fi + +exit 0 -- cgit v1.2.3