Skip to content

Commit ad63e30

Browse files
committed
Add debug logs for pnpm install user context in install-service script
1 parent 37d933c commit ad63e30

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bin/install-service.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,12 @@ echo -e "${YELLOW}Installing project dependencies...${NC}"
9898
ORIGINAL_USER=${SUDO_USER:-$USER}
9999

100100
# Run pnpm install with zsh and loading .zshrc
101+
echo "Running pnpm install..."
101102
if [ "$EUID" -eq 0 ]; then
103+
echo "Running as root"
102104
sudo -u "$ORIGINAL_USER" zsh -c "source /home/$ORIGINAL_USER/.zshrc && cd \"$PROJECT_DIR\" && pnpm install"
103105
else
106+
echo "Running as user"
104107
zsh -c "source $HOME/.zshrc && cd \"$PROJECT_DIR\" && pnpm install"
105108
fi
106109

0 commit comments

Comments
 (0)