From ba59a2c75e157554450d9d97d1cd1da4229f0751 Mon Sep 17 00:00:00 2001 From: Roland Date: Sun, 16 Jan 2022 09:22:03 -0700 Subject: [PATCH] Creating user before media directory. --- install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 260ecd6b..e2e50d78 100755 --- a/install.sh +++ b/install.sh @@ -92,14 +92,14 @@ cp /opt/wrolpi/nginx.conf /etc/nginx/nginx.conf cp /opt/wrolpi/50x.html /var/www/50x.html /usr/sbin/nginx -s reload -# Create the media directory. This should be mounted by the maintainer. -[ -d /media/wrolpi ] || mkdir /media/wrolpi -chown -R wrolpi:wrolpi /media/wrolpi - # Create the WROLPi user grep wrolpi /etc/passwd || useradd -d /opt/wrolpi wrolpi -s "$(command -v bash)" chown -R wrolpi:wrolpi /opt/wrolpi +# Create the media directory. This should be mounted by the maintainer. +[ -d /media/wrolpi ] || mkdir /media/wrolpi +chown -R wrolpi:wrolpi /media/wrolpi + # Install the systemd services cp /opt/wrolpi/systemd/wrolpi-api.service /etc/systemd/system/ cp /opt/wrolpi/systemd/wrolpi-app.service /etc/systemd/system/