scripts

Random scripts
git clone git://git.margiolis.net/scripts.git
Log | Files | Refs | README | LICENSE

commit f202ef98fdc6945c000fbf7a7bdca1f3cccb82ad
parent 96d2a5796015e47e782d5d6485056d5312fac707
Author: Christos Margiolis <christos@margiolis.net>
Date:   Tue, 10 May 2022 16:46:38 +0300

add incomplete jail scripts

Diffstat:
Adeljail | 7+++++++
Amkjail | 9+++++++++
2 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/deljail b/deljail @@ -0,0 +1,7 @@ +#!/bin/sh + +test $# -ne 1 && echo "usage: ${0##*/} jail" 1>&2; exit + +service jail stop ${1} +chflags -R noschg /usr/local/jail/${1} +rm -rf /usr/local/jail/${1} diff --git a/mkjail b/mkjail @@ -0,0 +1,9 @@ +#!/bin/sh + +test $# -ne 1 && echo "usage: ${0##*/} jail" 1>&2; exit + +# TODO: edit rc.conf and jail.conf + +mkdir -p /usr/local/jail/${1} +bsdinstall jail /usr/local/jail/${1} +service jail start ${1}