Ignore:
Timestamp:
Oct 31, 2019, 9:13:12 PM (5 years ago)
Author:
katerina
Message:

Fix for ticket #442 (support for OpenBSD signify).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/samhain-install.sh.in

    r548 r550  
    13391339
    13401340    GPGPATH=@mygpg@
     1341    SIGNIFY_PATH=@mysignify@
    13411342    TARGETKEYID=@mykeyid@
    13421343    KEYTAG=@mykeytag@
     
    14161417            cp ${RCFILE} samhainrc.pre
    14171418        fi
     1419    elif test x"${SIGNIFY_PATH}" != x
     1420    then
     1421        echo
     1422        echo "You need to sign the config file now"
     1423        echo
     1424        test -z "$verbose" || echo "  ${SIGNIFY_PATH} -Se -s ~/.signify/samhain.sec -m $RCFILE"
     1425        if test x"${NTEST}" = "x-DSH_WITH_SERVER"
     1426        then
     1427            myident_uid=`(cat /etc/passwd; ypcat passwd) 2>/dev/null |\
     1428                  grep "^${samhain}:" | awk -F: '{ print $3; }'`
     1429            if test x"${myident_uid}" != x
     1430            then
     1431                DOT_SIGNIFY=`eval echo ~${samhain}/.signify`
     1432                test -z "$verbose" || echo "  using home directory ${DOT_SIGNIFY}"
     1433                ${SIGNIFY_PATH} -Se -s ${DOT_GNUPG}/samhain.sec $RCFILE
     1434            else
     1435                ${SIGNIFY_PATH} -Se -s  ~/.signify/samhain.sec -m $RCFILE
     1436            fi
     1437        else
     1438            ${SIGNIFY_PATH} -Se -s  ~/.signify/samhain.sec -m $RCFILE
     1439        fi
     1440
     1441        if test -f ${RCFILE}.sig
     1442        then
     1443            test -z "$verbose" || echo "  mv -f ${RCFILE}.sig samhainrc.pre"
     1444            mv -f ${RCFILE}.sig samhainrc.pre
     1445        else
     1446            echo "**********************************************************"
     1447            echo
     1448            echo "${0}: ERROR: cannot find signed file ${RCFILE}.sig"
     1449            echo
     1450            echo "   --- You need to sign the configuration file ---"
     1451            echo
     1452            echo "**********************************************************"
     1453            cp ${RCFILE} samhainrc.pre
     1454        fi
    14181455    else
    14191456        test -z "$verbose" || echo "  cp $RCFILE samhainrc.pre"
Note: See TracChangeset for help on using the changeset viewer.