Skip to content

Commit

Permalink
fix: auto update brew service files
Browse files Browse the repository at this point in the history
  • Loading branch information
m2Giles committed May 16, 2024
1 parent 87d84e4 commit 2afbfc6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Description=Auto update brew for mutable brew installs
After=local-fs.target
After=network-online.target
ConditionPathExists=/home/linuxbrew/.linuxbrew/bin/brew
ConditionPathIsSymbolicLink=/home/linuxbrew/.linuxbrew/bin/brew

[Service]
# Override the user if different UID/User
Expand All @@ -11,5 +11,4 @@ Type=oneshot
Environment=HOMEBREW_CELLAR=/home/linuxbrew/.linuxbrew/Cellar
Environment=HOMEBREW_PREFIX=/home/linuxbrew/.linuxbrew
Environment=HOMEBREW_REPOSITORY=/home/linuxbrew/.linuxbrew/Homebrew
ExecStart=/home/linuxbrew/.linuxbrew/bin/brew update
StandardOutput=journal
ExecStart=/usr/bin/bash -c "/home/linuxbrew/.linuxbrew/bin/brew update"
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Description=Upgrade Brew packages
After=local-fs.target
After=network-online.target
ConditionPathExists=/home/linuxbrew/.linuxbrew/bin/brew
ConditionPathIsSymbolicLink=/home/linuxbrew/.linuxbrew/bin/brew

[Service]
# Override the user if different UID/User
Expand All @@ -11,5 +11,4 @@ Type=oneshot
Environment=HOMEBREW_CELLAR=/home/linuxbrew/.linuxbrew/Cellar
Environment=HOMEBREW_PREFIX=/home/linuxbrew/.linuxbrew
Environment=HOMEBREW_REPOSITORY=/home/linuxbrew/.linuxbrew/Homebrew
ExecStart=/home/linuxbrew/.linuxbrew/bin/brew upgrade
StandardOutput=journal
ExecStart=bash -c "/home/linuxbrew/.linuxbrew/bin/brew upgrade"

0 comments on commit 2afbfc6

Please sign in to comment.