fix: deploy.sh should chown repo dir before git operations #149
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Competitor
Kind/Documentation
Kind/Enhancement
Kind/Epic
Kind/Feature
Kind/Security
Kind/Story
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Scope/Core
Scope/Cross-Plugin
Scope/Plugin-System
Scope/Single-Plugin
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ultanio/cobot#149
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Deploy #983 failed with:
Some
.git/objectswere owned by root from a previous broken deploy (before #137). Even though deploy.sh now correctlyexec sudo -u alphabefore git operations, stale root-owned files from past deploys breakgit fetch.Fix
Add a
chown -R alpha:alpha $REPO_DIRstep in the root section of deploy.sh, before exec-ing to alpha:This makes deploy resilient against stale ownership from past broken runs.
Workaround applied
Manually ran
chown -R alpha:alpha /home/alpha/workspace/cobot/on olymp.