X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage5%2Fpost-install;h=52cca62ca2e19c1e32821cd184700a06c75262be;hb=59d689076b8aa617893e6fc647d7c0c0ecd5902a;hp=aca3db47ebf3647c2bd7c594b72ad90e7164cb97;hpb=fdeecdbf2bb61fe70e4783d4c20fbebac7a8830b;p=hvlinux.git diff --git a/stage5/post-install b/stage5/post-install index aca3db4..52cca62 100755 --- a/stage5/post-install +++ b/stage5/post-install @@ -8,7 +8,7 @@ if [ -n "${REGUSER}" ]; then hv_useradd -g users -s /bin/bash -m ${REGUSER} # Add user to these supplementary groups: - usermod -a -G audio,video,cdrom,usb,shutdown ${REGUSER} + usermod -a -G audio,video,cdrom,usb,shutdown,kvm,lpadmin ${REGUSER} fi if [ "x${INST_TYPE}" = "xserver" -o "x${INST_TYPE}" = "xltsp-server" ]; then @@ -16,22 +16,24 @@ 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/httpd/generate-ssl-certs + if [ "x${USE_HTTPD}" = "xyes" ]; then + 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/httpd/generate-ssl-certs + fi fi #########################################