initial version
continuous-integration/drone Build is failing
Details
continuous-integration/drone Build is failing
Details
This commit is contained in:
parent
ab89d50b13
commit
ee3f06d78a
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
kind: pipeline
|
||||
name: shellcheck
|
||||
|
||||
steps:
|
||||
- name: shellcheck
|
||||
image: koalaman/shellcheck-alpine:stable
|
||||
commands:
|
||||
- shellcheck backup_cosmicvoyage
|
||||
|
|
@ -0,0 +1 @@
|
|||
*.pem
|
|
@ -1,3 +1,7 @@
|
|||
# misfin-shell
|
||||
|
||||
small wrapper script to send messages to misfin using openssl
|
||||
small wrapper script to send messages to misfin using openssl
|
||||
|
||||
usage example
|
||||
./misfin.sh alexlehm@gemini.lehmann.cx Test message
|
||||
|
||||
|
|
|
@ -0,0 +1,38 @@
|
|||
#! /bin/sh
|
||||
#
|
||||
# small misfin test client to debug a server
|
||||
#
|
||||
# usage: misfin.sh user@host message
|
||||
#
|
||||
# e.g. misfin.sh alexlehm@gemini.lehmann.cx Testmessage
|
||||
#
|
||||
# tildegit.org/alexlehm/misfin-shell
|
||||
#
|
||||
|
||||
# change as necessary
|
||||
PORT=1958
|
||||
KEY=alexlehm.pem
|
||||
|
||||
if [ $# = 0 ]
|
||||
then
|
||||
echo "error"
|
||||
exit
|
||||
fi
|
||||
|
||||
USER=$1
|
||||
shift
|
||||
|
||||
HOST=`echo $USER|sed 's/.*@//'`
|
||||
|
||||
if [ $PORT != 1958 ]
|
||||
then
|
||||
HOSTPORT=$HOST:$PORT
|
||||
else
|
||||
HOSTPORT=$HOST
|
||||
fi
|
||||
|
||||
PROXY=
|
||||
#PROXY=-proxy localhost:8118
|
||||
|
||||
echo "misfin://$USER $*\r" | openssl s_client -cert $KEY -quiet $PROXY -connect $HOST:$PORT
|
||||
|
Loading…
Reference in New Issue