From 022b375185dacebcce15bea72486279b159f1a4b Mon Sep 17 00:00:00 2001 From: Lord Anton Hvornum Date: Thu, 24 May 2018 20:39:35 +0200 Subject: Rebased the deployment examples --- deployments/router.json | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 deployments/router.json (limited to 'deployments/router.json') diff --git a/deployments/router.json b/deployments/router.json new file mode 100644 index 00000000..48e038c0 --- /dev/null +++ b/deployments/router.json @@ -0,0 +1,17 @@ +{ + "Setup temp build env": { + "pacman -Syy --noconfirm git" : null, + "useradd -m -G wheel builder" : null, + "sed -i 's/# %wheel ALL=(ALL) NO/%wheel ALL=(ALL) NO/' /etc/sudoers" : null + }, + "install slimdhcp": { + "git clone https://aur.archlinux.org/slimdhcp-git.git /home/builder/slimdhcp" : null, + "chown -R builder.builder /home/builder/slimdhcp" : null, + "su - builder -c \"(cd /home/builder/slimdhcp/; /usr/bin/makepkg -s --noconfirm)\"" : null, + "sh -c 'pacman -U --noconfirm /home/builder/slimdhcp/*.xz'" : null + }, + "Remove temp build env": { + "rm -rf /home/builder/slimdhcp" : null, + "sed -i 's/%wheel ALL=(ALL) NO/# %wheel ALL=(ALL) NO/' /etc/sudoers" : null + } +} -- cgit v1.2.3-70-g09d2