create lowpriv user
This commit is contained in:
parent
7e42c4d955
commit
9b4b0013ab
@ -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"
|
||||||
|
|||||||
@ -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"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user