-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add sudoers config for passwordless usage of aurto group
- Loading branch information
1 parent
0a1fc98
commit fa6bfb1
Showing
3 changed files
with
11 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eu | ||
version="0.3.1" | ||
version="0.4" | ||
command=${1:-} | ||
arg1=${2:-} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
%wheel ALL=(ALL) NOPASSWD: /usr/bin/arch-nspawn | ||
%wheel ALL=(ALL) NOPASSWD: /usr/bin/pacsync aurto | ||
%wheel ALL=(ALL) NOPASSWD:SETENV: /usr/bin/makechrootpkg | ||
%wheel ALL=(ALL) NOPASSWD:SETENV: /usr/bin/aurbuild_chroot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,14 @@ | ||
|
||
PREFIX = /usr | ||
build_dist_args?= | ||
|
||
all: | ||
@rm -rf target | ||
|
||
@mkdir -p target/etc/pacman.d | ||
@cp conf/aurto.pacman.conf target/etc/pacman.d/aurto | ||
|
||
@mkdir -p target$(PREFIX)/bin | ||
@cp -r bin/* target$(PREFIX)/bin/ | ||
|
||
@mkdir -p target$(PREFIX)/lib/aurto | ||
@cp -r lib/* target$(PREFIX)/lib/aurto/ | ||
@install -D conf/aurto.pacman.conf target/etc/pacman.d/aurto | ||
@install -Dm440 conf/50_aurto_passwordless -t target/etc/sudoers.d | ||
@chmod 750 target/etc/sudoers.d | ||
|
||
@mkdir -p target$(PREFIX)/lib/systemd/system | ||
@cp -r timer/* target$(PREFIX)/lib/systemd/system/ | ||
@install -D bin/* -t target$(PREFIX)/bin | ||
@install -D lib/* -t target$(PREFIX)/lib/aurto | ||
@install -D timer/* -t target$(PREFIX)/lib/systemd/system | ||
|
||
@if command -v tree >/dev/null 2>&1; then tree target; fi |