bitreich-drist

fork of bitreich.org/drist
git clone git://git.pyratebeard.net/bitreich-drist.git
Log | Files | Refs | README | LICENSE

commit f87b55ae60ad8e173107eb34fbff84f8d64afc7b
parent 2861577f1ef835a57eab8de94dc88b0d435ecf9d
Author: Solene Rapenne <solene@perso.pw>
Date:   Thu, 19 Jul 2018 17:03:03 +0200

add examples

Diffstat:
Aexamples/new-machine_freebsd/absent/etc/newsyslog.conf.d/lighttpd.conf | 0
Aexamples/new-machine_freebsd/absent/etc/newsyslog.conf.d/mysql.conf | 0
Aexamples/new-machine_freebsd/absent/etc/newsyslog.conf.d/nginx.conf | 0
Aexamples/new-machine_freebsd/files/etc/newsyslog.conf.d/apache.conf | 1+
Aexamples/new-machine_freebsd/files/etc/newsyslog.conf.d/postgresql.conf | 1+
Rexamples/new-machine_openbsd/files/home/solene/config -> examples/new-machine_freebsd/files/home/solene/config | 0
Aexamples/new-machine_freebsd/script | 11+++++++++++
Dexamples/new-machine_openbsd/script | 11-----------
Aexamples/sudo/files/usr/local/etc/sudoers.d/wheel | 1+
Aexamples/sudo/script | 8++++++++
10 files changed, 22 insertions(+), 11 deletions(-)

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 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 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 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 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 diff --git a/examples/new-machine_openbsd/files/home/solene/config b/examples/new-machine_freebsd/files/home/solene/config 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' + 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' - 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 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