midgetspy/Sick-Beard — pull request #366 by psarossy (2012-04-13 07:32:38+00:00)
Title: determining the DATA_DIR (~/.sickbeard) is broken

The current way of determining the $DATA_DIR (~/.sickbeard) is broken, and will create the configs in /root instead of the running user's homedir on both Ubuntu and Debian. Parsing /etc/passwd is the canonical way to determine a users homedir. This also causes all sorts of issues as later on /root/.sickbeard is chown to $RUN_AS, hence allowing writes in root's homedir.