zerog

[archived] simple Parabola GNU/Linux post-install script
git clone git://git.hanetzok.net/zerog
Log | Files | Refs | README | LICENSE

commit 92de3d5ffd7fad9de33a6207baf43de8f7d938dd
parent 338e1e6f8d1d421f440ef68516066187cf3daaa8
Author: Markus Hanetzok <markus@hanetzok.net>
Date:   Mon, 20 Mar 2023 15:08:08 +0100

Remove AUR installs

The way zerog installed programs from the AUR was broken and to comply
with Parabolas recommendation to avoid the AUR the function to do so has
been completely removed.

Diffstat:
MREADME | 4+---
Mzerog | 12+-----------
2 files changed, 2 insertions(+), 14 deletions(-)

diff --git a/README b/README @@ -23,9 +23,7 @@ editing the corresponding variables at the beginning of the script AUR --- The usage of the AUR is highly discouraged by the Parabola developers. -Therefore this script does not install an AUR helper. The git_install function -does make it possible to install AUR packages, but I suggest you keep the -number low and check each PKGBUILD before adding it to the script. + Troubleshooting --------------- diff --git a/zerog b/zerog @@ -8,10 +8,6 @@ dotfiles="git://git.hanetzok.net/dotfiles" logfile="/tmp/zerog.log" suckless="git://git.hanetzok.net" -# Repos for AUR programs -mwrepo="https://aur.archlinux.org/mutt-wizard-git.git" -syntaxrepo="https://aur.archlinux.org/zsh-fast-syntax-highlighting.git" - ### FUNCTIONS ### error() { # Write to logfile and exit script @@ -37,10 +33,6 @@ prepare() { # Get progs.list cd /tmp && curl -O "$progs" || { error "Could not download progs.list"; } - - # Make user temporarily able to run sudo commands without entering password - trap 'rm -f /etc/sudoers.d/larbs-temp' HUP INT QUIT TERM PWR EXIT - echo "%wheel ALL=(ALL) NOPASSWD: ALL" >/etc/sudoers.d/larbs-temp } install_programs() { # Read from progs.list and install each entry @@ -59,6 +51,7 @@ get_dotfiles() { # Download dotfiles and place them in $HOME suckless() { # Clone and install suckless programs printf "### Installing suckless software ###\n" + [ -d "/home/$name/.local/src" ] || su -u "$name" mkdir -p /home/"$name"/.local/src for program in dwm st dmenu; do cd /home/"$name"/.local/src printf "Installing $program\n" @@ -95,9 +88,6 @@ follow_up() { rc-update add avahi-daemon default >/dev/null rc-update add cupsd default >/dev/null rc-update add tor default >/dev/null - - # Undo the temporary no-password workaround - rm /etc/sudoers.d/larbs-temp } ### SCRIPT ###