edit the config defaults

This commit is contained in:
openoms 2024-09-03 17:00:40 +02:00
parent 73c6b065c3
commit 9e690f9c32
No known key found for this signature in database
GPG key ID: 5BFB77609B081B65

View file

@ -104,6 +104,11 @@ if [ "$1" = "on" ]; then
sudo chmod 755 /mnt/hdd/app-data/strfry
sudo -u strfry cp ./strfry.conf /mnt/hdd/app-data/strfry/strfry.conf
# edit the defaults https://github.com/hoytech/strfry/blob/master/strfry.conf
sed -i 's|db = "./strfry-db/"|db = "/mnt/hdd/app-storage/strfry-db"|' /mnt/hdd/app-data/strfry/strfry.conf
sed -i 's|mapsize = 10995116277760|mapsize = 100000000000|' /mnt/hdd/app-data/strfry/strfry.conf
sed -i 's|bind = "127.0.0.1"|bind = "0.0.0.0"|' /mnt/hdd/app-data/strfry/strfry.conf
# symlink
sudo ln -s /mnt/hdd/app-data/strfry/strfry.conf /etc/strfry.conf