Creating user home directory when creating wrolpi user.

This commit is contained in:
Roland 2022-01-17 11:17:31 -07:00
parent 58bfde9c9c
commit b62dec0d42
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -91,7 +91,7 @@ cp /opt/wrolpi/50x.html /var/www/50x.html
/usr/sbin/nginx -s reload
# Create the WROLPi user
grep wrolpi /etc/passwd || useradd -d /home/wrolpi wrolpi -s "$(command -v bash)"
grep wrolpi /etc/passwd || useradd -md /home/wrolpi wrolpi -s "$(command -v bash)"
chown -R wrolpi:wrolpi /opt/wrolpi
# Create the media directory. This should be mounted by the maintainer.