Skip to content

Commit

Permalink
Copy entire homeadditions - preserving permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Biont committed Aug 1, 2023
1 parent 6e30a06 commit f90a70b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions playwright-build/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ usermod -a -G ssl-cert pwuser
# Install DDEV certificate
mkcert -install

# Set up .nprm rc if present. This might contain credentials for private registries
[ -f "/mnt/ddev_config/.homeadditions/.npmrc" ] && ln -s "/mnt/ddev_config/.homeadditions/.npmrc" /home/pwuser/.npmrc

# Set up homeadditions if present
if [ -d /mnt/ddev_config/.homeadditions ]; then
# Since we already modified UID/GID, the -p option preserves the correct permissions
cp -pr /mnt/ddev_config/.homeadditions/. /home/pwuser/
fi

# Run CMD from parameters as pwuser
sudo -u pwuser vncserver -fg -disableBasicAuth

0 comments on commit f90a70b

Please sign in to comment.