Fix: sudo docker build context + bootstrap reexec sudo
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -3,11 +3,8 @@
|
||||
#
|
||||
# Skapar INTE ny Node-RED-container. Patchar /home/ncadmin/nextcloud-node-red och bygger om.
|
||||
#
|
||||
# One-liner:
|
||||
# curl -fsSL https://kode.hannesahlin.se/n3wk/nextcloud-collabora-nodered/raw/branch/main/bootstrap-install.sh | bash
|
||||
#
|
||||
# Som ncadmin (rekommenderat):
|
||||
# curl -fsSL ... | sudo -u ncadmin bash
|
||||
# One-liner (kör som ncadmin, INTE root):
|
||||
# curl -fsSL https://kode.hannesahlin.se/n3wk/nextcloud-collabora-nodered/raw/branch/main/bootstrap-install.sh | sudo -u ncadmin bash
|
||||
#
|
||||
# Om git "dubious ownership" (root ägde repot):
|
||||
# sudo bash scripts/fix-repo-ownership.sh
|
||||
@@ -64,7 +61,7 @@ reexec_as_install_user() {
|
||||
log "Kör om som ${user} (inte root)..."
|
||||
export BOOTSTRAP_REEXEC=1
|
||||
export INSTALL_DIR NODERED_DIR INSTALL_MODE GIT_REPO_URL GIT_BRANCH
|
||||
exec run_as_root sudo -u "${user}" -H env \
|
||||
exec sudo -u "${user}" -H env \
|
||||
BOOTSTRAP_REEXEC=1 \
|
||||
INSTALL_DIR="${INSTALL_DIR}" \
|
||||
NODERED_DIR="${NODERED_DIR}" \
|
||||
|
||||
Reference in New Issue
Block a user