Update to directory v2
This commit is contained in:
parent
0f0c6ba6b4
commit
39809abbd4
2 changed files with 5 additions and 4 deletions
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -exu
|
set -exu
|
||||||
java -jar /usr/share/TextSecureServer.jar abusedb migrate /etc/signal-server.yaml
|
for db in abusedb keysdb accountdb messagedb; do
|
||||||
java -jar /usr/share/TextSecureServer.jar accountdb migrate /etc/signal-server.yaml
|
echo "Migrating $db"
|
||||||
java -jar /usr/share/TextSecureServer.jar messagedb migrate /etc/signal-server.yaml
|
java -jar /usr/share/TextSecureServer.jar "$db" migrate /etc/signal-server.yaml
|
||||||
|
done
|
||||||
java -jar /usr/share/TextSecureServer.jar server /etc/signal-server.yaml
|
java -jar /usr/share/TextSecureServer.jar server /etc/signal-server.yaml
|
||||||
|
|
|
@ -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)
|
_, err := ioutil.ReadAll(r.Body)
|
||||||
defer r.Body.Close()
|
defer r.Body.Close()
|
||||||
crash(err)
|
crash(err)
|
||||||
|
|
Loading…
Reference in a new issue