infrastructure/migrate-and-start-server.sh

14 lines
347 B
Bash
Raw Normal View History

2019-10-17 04:28:31 +00:00
#!/bin/bash
set -exu
CONFIG_FILE="/etc/signal-server/config.yaml"
# generate config
/usr/bin/config-generator | tee "${CONFIG_FILE}"
for db in abusedb accountdb messagedb; do
2020-06-25 05:50:22 +00:00
echo "Migrating $db"
java -jar /usr/share/TextSecureServer.jar "$db" migrate "${CONFIG_FILE}"
2020-06-25 05:50:22 +00:00
done
java -jar /usr/share/TextSecureServer.jar server "${CONFIG_FILE}"