2019-10-17 04:28:31 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -exu
|
2020-08-17 03:54:50 +00:00
|
|
|
|
|
|
|
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"
|
2020-08-17 03:54:50 +00:00
|
|
|
java -jar /usr/share/TextSecureServer.jar "$db" migrate "${CONFIG_FILE}"
|
2020-06-25 05:50:22 +00:00
|
|
|
done
|
2020-08-17 03:54:50 +00:00
|
|
|
java -jar /usr/share/TextSecureServer.jar server "${CONFIG_FILE}"
|