X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=src%2Fmonkeysphere-server;h=8139387cca858152a2b9a2da42becbddabb04468;hb=74bd3557fe340555629fd8615c31fe4b6a8b8174;hp=d2cac0e673570f50630e2a664739c23623796b5e;hpb=43504b118f0eb3a383687b2398b18199f6a307e7;p=monkeysphere.git diff --git a/src/monkeysphere-server b/src/monkeysphere-server index d2cac0e..8139387 100755 --- a/src/monkeysphere-server +++ b/src/monkeysphere-server @@ -20,7 +20,7 @@ export SHARE VARLIB="/var/lib/monkeysphere" export VARLIB -# date in UTF format if needed +# UTC date in ISO 8601 format if needed DATE=$(date -u '+%FT%T') # unset some environment variables that could screw things up @@ -568,6 +568,14 @@ diagnostics() { warnwindow='2 months' warndate=$(date +%s -d "$warnwindow") + if ! id monkeysphere >/dev/null ; then + echo "! No monkeysphere user found! Please create a monkeysphere system user." + fi + + if ! [ -d "$VARLIB" ] ; then + echo "! no $VARLIB directory found. Please create it." + fi + echo "Checking host GPG key..." if (( "$keysfound" < 1 )); then echo "! No host key found."