commit f300b5f542afc68da4b07e35a307a7e1e70e28f1
parent 2e046eb32bd4333550ce536b537fa33ab7bb786e
Author: Martin Schanzenbach <schanzen@gnunet.org>
Date: Wed, 6 Jul 2022 17:04:10 +0200
install scripts
Diffstat:
5 files changed, 6 insertions(+), 14 deletions(-)
diff --git a/Makefile b/Makefile
@@ -1,5 +1,7 @@
all: server cli
+SCRIPT_TARGET:=$(shell dirname $(shell go list -f '{{.Target}}' ./cmd/taldir-server))
+
server:
go build ./cmd/taldir-server
@@ -8,3 +10,5 @@ cli:
install: server cli
go install ./cmd/taldir-server && go install ./cmd/taldir-cli
+ chmod +x scripts/*
+ cp scripts/* $(SCRIPT_TARGET)
diff --git a/taldir-validate-test.sh b/scripts/taldir-validate-test
diff --git a/taldir-validate-test.sh b/scripts/taldir-validate-twitter
diff --git a/taldir-validate-twitter.sh b/taldir-validate-twitter.sh
@@ -1,12 +0,0 @@
-#!/bin/bash
-#
-# IMPORTANT: Before this can be used, as the taldir service user
-# you need to authorize this CLI app for the taldir twitter account.
-# e.g.:
-# $ t authorize
-#
-TWITTER_USER=$1
-CODE=$2
-LINK=$(./taldir-cli -l -a $1 -c $2)
-MESSAGE="Follow this link to complete your Taldir registration: $LINK"
-t dm $TWITTER_USER $MESSAGE
diff --git a/taldir.conf b/taldir.conf
@@ -18,11 +18,11 @@ command = validate_phone.sh
[taldir-test]
challenge_fee = 23 Kudos
-command = ./taldir-validate-test.sh
+command = taldir-validate-test.sh
[taldir-twitter]
challenge_fee = 2 Kudos
-command = ./taldir-validate-twitter.sh
+command = taldir-validate-twitter
[taldir-pq]
host = "localhost"