Skip to content

Commit

Permalink
Tell adduser to create the /home/mythtv directory
Browse files Browse the repository at this point in the history
In 23.04, when system users are created, the --home switch must be
added to create the directory in /home. If not, the directory name
will be "/nonexistant".
  • Loading branch information
Bill Meek committed Apr 27, 2023
1 parent 933c840 commit 2260eaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deb/debian/mythtv-common.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ case "$1" in

#only create a user if they don't already exist
if ! getent passwd mythtv 1>/dev/null; then
adduser --quiet --system --group --disabled-password --system \
--shell /bin/sh mythtv
adduser --quiet --home /home/mythtv --system --group \
--disabled-password --system --shell /bin/sh mythtv
fi
HOMEDIR=$(getent passwd mythtv | awk -F: '{ print $6 }')

Expand Down

0 comments on commit 2260eaa

Please sign in to comment.