OM-SEC-14: Run update hooks without reusable sudo authority
This commit is contained in:
1 parent
b686ed892d
commit
1136a715c0
8 files changed
+1628
-41
No files matched your search
@@ -1,17 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
# This hook is called by `omarchy refresh pacman` AFTER the channel template
|
||||
# is copied to /etc/pacman.conf and BEFORE `pacman -Syyuu` runs. Use it to
|
||||
# layer customizations onto the freshly-written pacman.conf so they're
|
||||
# respected by the upgrade — common cases are adding a custom repository
|
||||
# This legacy-named hook is called by `omarchy refresh pacman` AFTER the
|
||||
# channel template is copied and the privileged package transaction finishes.
|
||||
# During `omarchy channel set`, it is deferred until the package switch and
|
||||
# complete update have also finished.
|
||||
# Use it to layer customizations onto the freshly-written pacman.conf for
|
||||
# subsequent package operations — common cases are adding a custom repository
|
||||
# (e.g. CachyOS, Chaotic-AUR, an internal company repo) or extra IgnorePkg
|
||||
# lines.
|
||||
#
|
||||
# The hook runs as the invoking user with a warm sudo cache.
|
||||
# The hook runs as the invoking user after Omarchy invalidates its sudo cache.
|
||||
# A sudo command here therefore requires its own explicit authorization.
|
||||
#
|
||||
# To put it into use, remove .sample from this file name.
|
||||
|
||||
# Example: add an Include line above [core] for a custom repo.
|
||||
# Example: add an Include line above [core] for future package operations.
|
||||
# Maintain the repo entries in /etc/pacman.d/custom-repos.conf yourself.
|
||||
|
||||
CONF=/etc/pacman.conf
|
||||
|
||||
Reference in new issue
Block a user