[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taldir] branch master updated: install scripts
From: |
gnunet |
Subject: |
[taler-taldir] branch master updated: install scripts |
Date: |
Wed, 06 Jul 2022 17:04:13 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository taldir.
The following commit(s) were added to refs/heads/master by this push:
new f300b5f install scripts
f300b5f is described below
commit f300b5f542afc68da4b07e35a307a7e1e70e28f1
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Wed Jul 6 17:04:10 2022 +0200
install scripts
---
Makefile | 4 ++++
taldir-validate-test.sh => scripts/taldir-validate-test | 0
taldir-validate-test.sh => scripts/taldir-validate-twitter | 0
taldir-validate-twitter.sh | 12 ------------
taldir.conf | 4 ++--
5 files changed, 6 insertions(+), 14 deletions(-)
diff --git a/Makefile b/Makefile
index 212727b..3708d34 100644
--- 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
similarity index 100%
copy from taldir-validate-test.sh
copy to scripts/taldir-validate-test
diff --git a/taldir-validate-test.sh b/scripts/taldir-validate-twitter
similarity index 100%
rename from taldir-validate-test.sh
rename to scripts/taldir-validate-twitter
diff --git a/taldir-validate-twitter.sh b/taldir-validate-twitter.sh
deleted file mode 100755
index 5aec5cb..0000000
--- a/taldir-validate-twitter.sh
+++ /dev/null
@@ -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
index 5116801..e84a577 100644
--- 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"
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-taldir] branch master updated: install scripts,
gnunet <=