mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-10 02:25:56 +00:00
fix(script): Run git pull as pulse user during update
This commit is contained in:
@@ -131,8 +131,9 @@ perform_update() {
|
||||
print_info "Attempting to update Pulse..."
|
||||
cd "$PULSE_DIR" || { print_error "Failed to change directory to $PULSE_DIR"; return 1; }
|
||||
|
||||
print_info "Fetching latest changes from git..."
|
||||
if ! git pull origin main; then
|
||||
print_info "Fetching latest changes from git (running as user $PULSE_USER)..."
|
||||
# Run git pull as the pulse user to avoid ownership issues
|
||||
if ! sudo -u "$PULSE_USER" git pull origin main; then
|
||||
print_error "Failed to pull latest changes from git."
|
||||
cd ..
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user