]> hackdaworld.org Git - hdw-linux/hdw-linux.git/commitdiff
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 a62257cc3899eb29303b331b6dfdc3419616d480..b12d3ee1999e76946959b710b85537386cfcb0d4 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 bee0458e5737c3952dd6b3edaba1c5baa302af22..bb751ad6f232ecdb439a43a4bec104c572e461ba 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
+                       }