diff --git a/db/db_to_ram.sh b/db/db_to_ram.sh new file mode 100644 index 0000000..dff9ba2 --- /dev/null +++ b/db/db_to_ram.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +mkdir /mnt/db +mount -t ramfs -o size=50m ramfs /mnt/db + +mv /var/run/pyheatpump/pyheatpump.sqlite3 /mnt/db +ln -s /mnt/db/pyheatpump.sqlite3 /var/run/pyheatpump/