-Updated PCManFM (bug with file associations);
[hvlinux.git] / stage5 / post-install
index 6c953a9..3086b3a 100755 (executable)
@@ -2,9 +2,13 @@
 
 source ../functions/main
 
+update-desktop-database
+
 if [ -n "${REGUSER}" ]; then
-    hv_useradd -g users -G audio,video,cdrom,usb,shutdown,halusers \
-        -s /bin/bash -m ${REGUSER}
+    hv_useradd -g users -s /bin/bash -m ${REGUSER}
+
+    # Add user to these supplementary groups:
+    usermod -a -G audio,video,cdrom,usb,shutdown ${REGUSER}
 fi
 
 if [ "x${INST_TYPE}" = "xserver" -o "x${INST_TYPE}" = "xltsp-server" ]; then
@@ -13,44 +17,43 @@ if [ "x${INST_TYPE}" = "xserver" -o "x${INST_TYPE}" = "xltsp-server" ]; then
     # Apache
     #########################################
     READ_VALID="no"
-    
+
     while [ "${READ_VALID}" = "no" ]; do
        echo "Do you want to generate SSL self-signed"
        echo -n "certificate for Apache? (y/n): "
        read USE_SSL
-       
+
        if [ "${USE_SSL}" = "y" -o "${USE_SSL}" = "n" ]; then
            READ_VALID="yes"
        else
            echo "Error, answer y or n"
        fi
     done
-    
+
     if [ "${USE_SSL}" = "y" ]; then
        /etc/apache/generate-ssl-certs
     fi
-    
+
     #########################################
     # imap
     #########################################
     READ_VALID="no"
-    
+
     while [ "${READ_VALID}" = "no" ]; do
        echo "Do you want to generate SSL self-signed"
        echo -n "certificate for IMAP server? (y/n): "
        read USE_SSL
-       
+
        if [ "${USE_SSL}" = "y" -o "${USE_SSL}" = "n" ]; then
            READ_VALID="yes"
        else
            echo "Error, answer y or n"
        fi
     done
-    
+
     if [ "${USE_SSL}" = "y" ]; then
        /etc/mail/imap-ssl-certs
     fi
-    
 fi
 
 exit $?