invoking monkeysphere-server diagnostics at the end of the FreeBSD package installation.
[monkeysphere.git] / packaging / freebsd / pkg-install
index dc75cf7b1ded009cc6b0859afc7cac0f13644d57..92a4bbc759610ac78aeef2fd7a71d7f002d3ef2a 100755 (executable)
@@ -38,7 +38,7 @@ POST-INSTALL)
                 echo "You already have a user \"${USER}\", so I will use it."
         else
                 if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \
-                        -d "$VARLIB" -s /sbin/sh -c "monkeysphere authentication user,,,"
+                        -d "$VARLIB" -s /bin/sh -c "monkeysphere authentication user,,,"
                 then
                         echo "Added user \"${USER}\"."
                 else
@@ -49,12 +49,12 @@ POST-INSTALL)
 
        ## set up the cache directories:
 
-       install --owner root --group monkeysphere --mode 750 -d "$VARLIB"/gnupg-host
+       install -d -o root -g monkeysphere -m 750 "$VARLIB"/gnupg-host
        cat <<EOF > "$VARLIB"/gnupg-host/gpg.conf
 list-options show-uid-validity
 EOF
 
-       install --owner monkeysphere --group monkeysphere --mode 700 -d "$VARLIB"/gnupg-authentication
+       install -d -o monkeysphere -g monkeysphere -m 700 "$VARLIB"/gnupg-authentication
 # install authentication gpg.conf
        cat <<EOF > "$VARLIB"/gnupg-authentication/gpg.conf
 list-options show-uid-validity
@@ -63,5 +63,6 @@ keyring $VARLIB/gnupg-host/pubring.gpg
 EOF
        chown monkeysphere:monkeysphere "$VARLIB"/gnupg-authentication/gpg.conf
 
+       monkeysphere-server diagnostics
         ;;
 esac