create lowpriv user

This commit is contained in:
vhsdream 2025-12-12 13:19:20 -05:00
parent 7e42c4d955
commit 9b4b0013ab
2 changed files with 3 additions and 0 deletions

View File

@ -51,6 +51,7 @@ function update_script() {
cd /opt/nextExplorer/ cd /opt/nextExplorer/
mv backend/{node_modules,src,package.json} "$APP_DIR" mv backend/{node_modules,src,package.json} "$APP_DIR"
mv frontend/dist/ "$APP_DIR"/src/public mv frontend/dist/ "$APP_DIR"/src/public
chown -R explorer:explorer "$APP_DIR" /etc/nextExplorer
msg_ok "Updated nextExplorer" msg_ok "Updated nextExplorer"
msg_info "Starting nextExplorer" msg_info "Starting nextExplorer"

View File

@ -110,6 +110,8 @@ SHARES_ENABLED=true
# SHARES_ALLOW_ANONYMOUS=true # SHARES_ALLOW_ANONYMOUS=true
EOF EOF
chmod 600 /etc/nextExplorer/.env chmod 600 /etc/nextExplorer/.env
$STD useradd -U -s /bin/bash -m -d /home/explorer explorer
chown -R explorer:explorer "$APP_DIR" /etc/nextExplorer
msg_ok "Configured nextExplorer" msg_ok "Configured nextExplorer"
msg_info "Creating nextExplorer Service" msg_info "Creating nextExplorer Service"