emxsys / callattendant

A python-based automated call attendant, call blocker, and voice messaging system running on a Raspberry Pi. Screens callers and block robocalls and scams with a low-cost Raspberry Pi and modem.
https://emxsys.github.io/callattendant/
MIT License
117 stars 36 forks source link

Change location of data to /var/lib/callattendant #84

Closed emxsys closed 4 years ago

emxsys commented 4 years ago

Change the location of the data (callattendant.db and message .wav files) from the application distribution folder to the linux /var/lib folder hierarchy.

Old folder: <callattendant install folder>/callattendant/data New folder: /var/lib/callattendant

emxsys commented 4 years ago

This may require the use of sudo to use the var/lib location, e.g.:

sudo callattendant

Issue: What to do if sudo isn't used?

Also, users may not be comfortable running callattendant with root privileges. I too, as a developer, am not comfortable requiring root privileges for my app.

emxsys commented 4 years ago

I will not use this technique, but I will ensure the system can be configured by the user to use it (via the confg files). Instead, I will set the default location for the data to $HOME/.callattendant, i.e., ~/.callattendant.