#!/bin/bash if [ -f /etc/pacman.conf ]; then if ! grep -q '\[welsby\]' /etc/pacman.conf; then echo "" >> /etc/pacman.conf echo "[welsby]" >> /etc/pacman.conf echo "SigLevel = Optional TrustAll" >> /etc/pacman.conf echo "Server = https://packages.welsby.de" >> /etc/pacman.conf echo "" >> /etc/pacman.conf fi elif [ -f /etc/apt/sources.list ]; then if ! grep -q 'packages\.welsby\.de' /etc/apt/sources.list; then echo "" >> /etc/apt/sources.list echo "deb [trusted=yes] https://packages.welsby.de ./" >> /etc/apt/sources.list echo "" >> /etc/apt/sources.list fi fi