Merge pull request #13350 from omacom/fix/sudo-passwordless-migration-path
Run the passwordless sudo helper from $OMARCHY_PATH in its migration
This commit is contained in:
2 files changed
+10
-5
No files matched your search
@@ -1,6 +1,9 @@
|
||||
echo "Remove legacy temporary passwordless sudo grants"
|
||||
|
||||
# Migration queues are per-user; the privileged repair is once per machine.
|
||||
if ! /usr/bin/omarchy-sudo-passwordless __migration-complete; then
|
||||
sudo /usr/bin/omarchy-sudo-passwordless __migrate
|
||||
# The helper beside this migration: the package's /usr/bin copy on an install,
|
||||
# and under a dev link the checkout's, which may be newer than the package.
|
||||
helper="$OMARCHY_PATH/bin/omarchy-sudo-passwordless"
|
||||
if ! "$helper" __migration-complete; then
|
||||
sudo "$helper" __migrate
|
||||
fi
|
||||
Reference in new issue
Block a user