cfgfoo

git clone https://orangeshoelaces.net/git/cfgfoo.git

0795cde279d5cb1eb1e4f49a4275748d99e0b698

Author: Vasilii Kolobkov on 12/24/2018

Committer: Vasilii Kolobkov on 12/24/2018

Run syspatch. Move OpenBSD specific steps to 'steps/obsd'

Stats

aliases              | 3 ++-
steps/obsd/syspatch  | 7 +++++++
steps/obsd/users/add | 7 +++++++
steps/users/obsd/add | 7 -------
4 files changed, 16 insertions(+), 8 deletions(-)

Patch

diff --git a/aliases b/aliases
index 994599d..320904e 100644
--- a/aliases
+++ b/aliases
@@ -25,4 +25,5 @@ alias rc_start="cfgfoo ${CFGFOOPATH}/steps/rc/start "
 alias smtpd_check="cfgfoo ${CFGFOOPATH}/steps/smtpd/check -s "
 alias smtpd_newaliases="cfgfoo ${CFGFOOPATH}/steps/smtpd/newaliases "
 
-alias users_obsd_add="cfgfoo ${CFGFOOPATH}/steps/users/obsd/add "
+alias obsd_syspatch="cfgfoo ${CFGFOOPATH}/steps/obsd/syspatch "
+alias obsd_users_add="cfgfoo ${CFGFOOPATH}/steps/obsd/users/add "
diff --git a/steps/obsd/syspatch b/steps/obsd/syspatch
new file mode 100644
index 0000000..8e547c4
--- /dev/null
+++ b/steps/obsd/syspatch
@@ -0,0 +1,7 @@
+step_taken() {
+	false
+}
+
+take_step() {
+	syspatch
+}
diff --git a/steps/obsd/users/add b/steps/obsd/users/add
new file mode 100644
index 0000000..d3bc194
--- /dev/null
+++ b/steps/obsd/users/add
@@ -0,0 +1,7 @@
+step_taken() {
+	userinfo "$1" > /dev/null
+}
+
+take_step() {
+	useradd -d "/home/$1" -m -e 0 -g =uid -L default -s /bin/ksh "$1"
+}
diff --git a/steps/users/obsd/add b/steps/users/obsd/add
deleted file mode 100644
index d3bc194..0000000
--- a/steps/users/obsd/add
+++ /dev/null
@@ -1,7 +0,0 @@
-step_taken() {
-	userinfo "$1" > /dev/null
-}
-
-take_step() {
-	useradd -d "/home/$1" -m -e 0 -g =uid -L default -s /bin/ksh "$1"
-}