Skip to content

Commit

Permalink
fix(deb-package): fix after-install.sh so user directory is actually …
Browse files Browse the repository at this point in the history
…created

Probably a typo, the script was using useradd with option -M, which
actually forbid user directory creation.
  • Loading branch information
raspbeguy committed Jan 15, 2025
1 parent 8e023c7 commit 472cf31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/after_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
USER="cortex-tenant"
HOME="/var/lib/$USER"

useradd -d $HOME -s /bin/false -M $USER > /dev/null 2>&1 || true
useradd -d $HOME -s /bin/false -m $USER > /dev/null 2>&1 || true
chown $USER:$USER $HOME

0 comments on commit 472cf31

Please sign in to comment.