datarhei-dragonfork-core/run.sh

14 lines
293 B
Bash
Raw Normal View History

2022-05-13 13:26:45 -04:00
#!/bin/sh
# First run the import program. It will read the db.dir from the config file in order to
# find an old v1.json. This will be converted to the new db format.
./bin/import
if [ $? -ne 0 ]; then
exit 1
fi
# Now run the core with the possibly converted configuration.
./bin/core