infrastructure/migrate-and-start-server.sh
2019-10-16 21:31:23 -07:00

10 lines
434 B
Bash
Executable file

#!/bin/bash
set -exu
if [[ "$1" == "version" ]]; then
java -jar /usr/share/TextSecureServer.jar -v
exit
fi
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
java -jar /usr/share/TextSecureServer.jar server /etc/signal-server.yaml