add examples - drist - a remote deployment tool HTML git clone git://bitreich.org/drist/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/drist/ DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit f87b55ae60ad8e173107eb34fbff84f8d64afc7b DIR parent 2861577f1ef835a57eab8de94dc88b0d435ecf9d HTML Author: Solene Rapenne <solene@perso.pw> Date: Thu, 19 Jul 2018 17:03:03 +0200 add examples Diffstat: A examples/new-machine_freebsd/absen… | 0 A examples/new-machine_freebsd/absen… | 0 A examples/new-machine_freebsd/absen… | 0 A examples/new-machine_freebsd/files… | 1 + A examples/new-machine_freebsd/files… | 1 + R examples/new-machine_openbsd/files… | 0 A examples/new-machine_freebsd/script | 11 +++++++++++ D examples/new-machine_openbsd/script | 11 ----------- A examples/sudo/files/usr/local/etc/… | 1 + A examples/sudo/script | 8 ++++++++ 10 files changed, 22 insertions(+), 11 deletions(-) --- DIR diff --git a/examples/new-machine_freebsd/absent/etc/newsyslog.conf.d/lighttpd.conf b/examples/new-machine_freebsd/absent/etc/newsyslog.conf.d/lighttpd.conf DIR diff --git a/examples/new-machine_freebsd/absent/etc/newsyslog.conf.d/mysql.conf b/examples/new-machine_freebsd/absent/etc/newsyslog.conf.d/mysql.conf DIR diff --git a/examples/new-machine_freebsd/absent/etc/newsyslog.conf.d/nginx.conf b/examples/new-machine_freebsd/absent/etc/newsyslog.conf.d/nginx.conf DIR diff --git a/examples/new-machine_freebsd/files/etc/newsyslog.conf.d/apache.conf b/examples/new-machine_freebsd/files/etc/newsyslog.conf.d/apache.conf @@ -0,0 +1 @@ +something 1 2 3 4 GZ00 DIR diff --git a/examples/new-machine_freebsd/files/etc/newsyslog.conf.d/postgresql.conf b/examples/new-machine_freebsd/files/etc/newsyslog.conf.d/postgresql.conf @@ -0,0 +1 @@ +thing field field field hello DIR diff --git a/examples/new-machine_openbsd/files/home/solene/config b/examples/new-machine_freebsd/files/home/solene/config DIR diff --git a/examples/new-machine_freebsd/script b/examples/new-machine_freebsd/script @@ -0,0 +1,11 @@ +#!/bin/sh + +sudo pkg install -y rlwrap git taskwarrior tig tor ecl +sudo useradd -m solene +sudo chown solene /home/solene +install -d -o solene -m 700 /home/solene/.ssh +install -d -o solene -m 700 /home/solene/dev/ + +cd /home/solene/dev +sudo su solene -c 'git clone bitreich.org/clic' + DIR diff --git a/examples/new-machine_openbsd/script b/examples/new-machine_openbsd/script @@ -1,11 +0,0 @@ -#!/bin/sh - -doas pkg_add rlwrap git taskwarrior tig tor ecl -doas useradd -m solene -doas chown solene /home/solene -install -d -o solene -m 700 /home/solene/.ssh -install -d -o solene -m 700 /home/solene/dev/ - -cd /home/solene/dev -doas su solene -c 'git clone bitreich.org/clic' - DIR diff --git a/examples/sudo/files/usr/local/etc/sudoers.d/wheel b/examples/sudo/files/usr/local/etc/sudoers.d/wheel @@ -0,0 +1 @@ +%wheel ALL=(ALL) NOPASSWD: ALL DIR diff --git a/examples/sudo/script b/examples/sudo/script @@ -0,0 +1,8 @@ +#!/bin/sh + +## script for freebsd +## need to login as root to use it + +pkg install -y sudo + +pw usermod remote_user -G wheel,operator,staff