Update to directory v2

This commit is contained in:
Finn 2020-06-24 22:50:22 -07:00
parent 0f0c6ba6b4
commit 39809abbd4
2 changed files with 5 additions and 4 deletions

View file

@ -1,6 +1,7 @@
#!/bin/bash
set -exu
java -jar /usr/share/TextSecureServer.jar abusedb migrate /etc/signal-server.yaml
java -jar /usr/share/TextSecureServer.jar accountdb migrate /etc/signal-server.yaml
java -jar /usr/share/TextSecureServer.jar messagedb migrate /etc/signal-server.yaml
for db in abusedb keysdb accountdb messagedb; do
echo "Migrating $db"
java -jar /usr/share/TextSecureServer.jar "$db" migrate /etc/signal-server.yaml
done
java -jar /usr/share/TextSecureServer.jar server /etc/signal-server.yaml

View file

@ -32,7 +32,7 @@ func main() {
}
})
http.HandleFunc("/v1/directory/reconcile", func(w http.ResponseWriter, r *http.Request) {
http.HandleFunc("/v2/directory/reconcile", func(w http.ResponseWriter, r *http.Request) {
_, err := ioutil.ReadAll(r.Body)
defer r.Body.Close()
crash(err)