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 a2ee38465ec1ce00bc5fecbd812b8b0433f2ceae DIR parent e94124436c123815f7ff2ce8117fd7f7392b8df7 HTML Author: Solene Rapenne <solene@perso.pw> Date: Tue, 17 Jul 2018 14:36:36 +0200 add examples Diffstat: A examples/new-machine_openbsd/files… | 2 ++ A examples/new-machine_openbsd/script | 11 +++++++++++ A examples/nginx_freebsd/files-grifo… | 5 +++++ A examples/nginx_freebsd/files/usr/l… | 5 +++++ A examples/nginx_freebsd/script | 5 +++++ A examples/nginx_freebsd/script-grif… | 3 +++ A examples/nginx_openbsd/files-grifo… | 5 +++++ A examples/nginx_openbsd/files/var/w… | 5 +++++ A examples/nginx_openbsd/script | 5 +++++ A examples/nginx_openbsd/script-grif… | 3 +++ 10 files changed, 49 insertions(+), 0 deletions(-) --- DIR diff --git a/examples/new-machine_openbsd/files/home/solene/config b/examples/new-machine_openbsd/files/home/solene/config @@ -0,0 +1,2 @@ +Host grifon.fr +user public_user DIR diff --git a/examples/new-machine_openbsd/script b/examples/new-machine_openbsd/script @@ -0,0 +1,11 @@ +#!/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/nginx_freebsd/files-grifon.fr/usr/local/www/index.html b/examples/nginx_freebsd/files-grifon.fr/usr/local/www/index.html @@ -0,0 +1,5 @@ +<html> + <body> + Hello, welcome on Grifon.fr homepage! + </body> +</html> DIR diff --git a/examples/nginx_freebsd/files/usr/local/www/index.html b/examples/nginx_freebsd/files/usr/local/www/index.html @@ -0,0 +1,5 @@ +<html> + <body> + Hello, this has been installed with drist! + </body> +</html> DIR diff --git a/examples/nginx_freebsd/script b/examples/nginx_freebsd/script @@ -0,0 +1,5 @@ +#!/bin/sh + +sudo pkg install -y nginx +echo "nginx_enable=yes" | sudo tee /etc/rc.conf.d/nginx +sudo service nginx start DIR diff --git a/examples/nginx_freebsd/script-grifon.fr b/examples/nginx_freebsd/script-grifon.fr @@ -0,0 +1,3 @@ +#!/bin/sh + +doas chown public_user /var/www/htdocs/index.html DIR diff --git a/examples/nginx_openbsd/files-grifon.fr/var/www/htdocs/index.html b/examples/nginx_openbsd/files-grifon.fr/var/www/htdocs/index.html @@ -0,0 +1,5 @@ +<html> + <body> + Hello, welcome on Grifon.fr homepage! + </body> +</html> DIR diff --git a/examples/nginx_openbsd/files/var/www/htdocs/index.html b/examples/nginx_openbsd/files/var/www/htdocs/index.html @@ -0,0 +1,5 @@ +<html> + <body> + Hello, this has been installed with drist! + </body> +</html> DIR diff --git a/examples/nginx_openbsd/script b/examples/nginx_openbsd/script @@ -0,0 +1,5 @@ +#!/bin/sh + +doas pkg_add nginx +doas rcctl enable nginx +doas rcctl start nginx DIR diff --git a/examples/nginx_openbsd/script-grifon.fr b/examples/nginx_openbsd/script-grifon.fr @@ -0,0 +1,3 @@ +#!/bin/sh + +doas chown public_user /var/www/htdocs/index.html