mirror of
https://github.com/theupriser/steamify-cachyos-live-iso.git
synced 2026-10-02 15:10:26 +02:00
fix: The installer's sudo rule is read last, or CachyOS's %wheel rule after it asks for the password
This commit is contained in:
1 parent
ae21fa9973
commit
f42859ac6a
1 file changed
+3
-2
@@ -2,11 +2,12 @@
|
|||||||
# steamify-install <target root> <user>: runs Steamify's default setup for
|
# steamify-install <target root> <user>: runs Steamify's default setup for
|
||||||
# the new user inside the installed system (Calamares, after the users and
|
# the new user inside the installed system (Calamares, after the users and
|
||||||
# services steps). Steamify refuses root and asks sudo per command, so the
|
# services steps). Steamify refuses root and asks sudo per command, so the
|
||||||
# user gets a NOPASSWD rule for this run only. Never fails the install: a
|
# user gets a NOPASSWD rule for this run only, named to be read last: sudo
|
||||||
|
# takes the last matching rule, and a later %wheel rule would ask again. Never fails the install: a
|
||||||
# problem leaves the log and Steamify can be run again from the desktop.
|
# problem leaves the log and Steamify can be run again from the desktop.
|
||||||
root="$1" user="$2"
|
root="$1" user="$2"
|
||||||
log="$root/var/log/steamify-install.log"
|
log="$root/var/log/steamify-install.log"
|
||||||
rule="$root/etc/sudoers.d/00-steamify-install"
|
rule="$root/etc/sudoers.d/zz-steamify-install"
|
||||||
[[ -d "$root" && -n "$user" ]] || exit 0
|
[[ -d "$root" && -n "$user" ]] || exit 0
|
||||||
|
|
||||||
install -Dm755 /usr/local/share/steamify/steamify.sh "$root/var/tmp/steamify.sh"
|
install -Dm755 /usr/local/share/steamify/steamify.sh "$root/var/tmp/steamify.sh"
|
||||||
|
|||||||
Reference in new issue
Block a user