added openssh setup script
authorhackbard <hackbard>
Sun, 25 Jul 2004 10:28:08 +0000 (10:28 +0000)
committerhackbard <hackbard>
Sun, 25 Jul 2004 10:28:08 +0000 (10:28 +0000)
doc/CHANGELOG
packages/security/openssh/openssh
packages/security/openssh/openssh.setup [new file with mode: 0644]

index a62257c..b12d3ee 100644 (file)
@@ -1,5 +1,6 @@
 *) 2004-07-25
 
+- added setup script for openssh
 - some target modifications
 - added FAI docu and script (not working yet, just to have it there!)
 - updated ardour
index bee0458..bb751ad 100644 (file)
@@ -10,10 +10,7 @@ flist_pruned="${flist_pruned}|etc/shadow|etc/passwd|etc/group"
 
 pre_install()  {
        export LD=gcc
-       # add the sshd user
-       echo "adding user sshd ..."
-       [ -z "`cat $root/etc/passwd | grep sshd`" ] && useradd sshd
-       echo "done."
+       useradd -u 1025 -c 'sshd server' sshd || true
                }
 
 confopt="$confopt --with-md5-passwords --without-pam --with-tcp-wrappers \
diff --git a/packages/security/openssh/openssh.setup b/packages/security/openssh/openssh.setup
new file mode 100644 (file)
index 0000000..603bbb1
--- /dev/null
@@ -0,0 +1,7 @@
+setup_block()  {
+       useradd -u 1025 -c 'sshd server' sshd || true
+               }
+
+uninstall_block()      {
+       userdel sshd || true
+                       }