]> Untitled Git - hvlinux.git/commitdiff
Création de l'usager régulier seulement à la fin du stage 5.
authorgobo72 <gobo72@364a67c3-989e-7be9-548d-dae8560ea662>
Sat, 1 Oct 2011 22:02:45 +0000 (22:02 +0000)
committergobo72 <gobo72@364a67c3-989e-7be9-548d-dae8560ea662>
Sat, 1 Oct 2011 22:02:45 +0000 (22:02 +0000)
stage2/post-install
stage4/pkg/hal
stage5/post-install

index fb6c9924a77a09003a1b46f02b0ba34eaf0d3e19..5da1992f8a7df5b3fbaac4aa15738878ed5eab67 100755 (executable)
@@ -14,12 +14,8 @@ EOF
 
 chmod -v 644 /etc/default/useradd
 
-if [ -n "${REGUSER}" ]; then
-    hv_useradd -g users -G audio,video,cdrom,usb,shutdown -s /bin/bash -m ${REGUSER}
-fi
-
 echo "Copying /etc/skel files to root directory"
-# Copy skel files to root directory. First create a copy to change owner
+# First create a copy to change owner
 cp -au /etc/skel/.??* /root
 
 # Fixing ownership of directories /tmp and /var/log (may have been created by
index 78d38acd658f8efab5060589c4cd00236c002c94..b90ea66425f0ef7ad7c819e8063d35a79d0f59ba 100644 (file)
@@ -47,7 +47,7 @@ hvbuild_post()
 EOF
 
     # Now add the users you would like to the halusers group to use HAL:
-    usermod -a -G halusers ${REGUSER}
+    ##usermod -a -G halusers ${USERNAME}
 
     # With the above configuration in place, authorized users now have the
     # ability to unmount disk partitions mounted at non-standard locations such
index e5adb97ab1e2f0a7b5348c01a2a92d683aa9a473..6c953a97ec8518ccfb0cccd53ac979a10dc31f52 100755 (executable)
@@ -2,6 +2,11 @@
 
 source ../functions/main
 
+if [ -n "${REGUSER}" ]; then
+    hv_useradd -g users -G audio,video,cdrom,usb,shutdown,halusers \
+        -s /bin/bash -m ${REGUSER}
+fi
+
 if [ "x${INST_TYPE}" = "xserver" -o "x${INST_TYPE}" = "xltsp-server" ]; then
 
     #########################################