nextExplorer: disable shell for user; fix version display

This commit is contained in:
vhsdream
2026-01-15 22:50:31 -05:00
parent 15dc08ef04
commit b92931f6ee
2 changed files with 5 additions and 1 deletions

View File

@@ -119,8 +119,9 @@ SHARES_ENABLED=true
# SHARES_ALLOW_ANONYMOUS=true
EOF
chmod 600 /etc/nextExplorer/.env
$STD useradd -U -s /bin/bash -m -d /home/explorer explorer
$STD useradd -U -s /usr/sbin/nologin -m -d /home/explorer explorer
chown -R explorer:explorer "$APP_DIR" /etc/nextExplorer
sed -i "\|version|s|$(jq -cr '.version' ${APP_DIR}/package.json)|$(cat ~/.nextexplorer)|" "$APP_DIR"/package.json
msg_ok "Configured nextExplorer"
msg_info "Creating nextExplorer Service"
@@ -131,6 +132,8 @@ After=network.target
[Service]
Type=simple
User=explorer
Group=explorer
WorkingDirectory=/opt/nextExplorer/app
EnvironmentFile=/etc/nextExplorer/.env
ExecStart=/usr/bin/node ./src/app.js