Votre Nom 1 year ago
parent
commit
ca543c2e95
1 changed files with 8 additions and 5 deletions
  1. 8 5
      other_arch/centos.sh

+ 8 - 5
other_arch/centos.sh

@@ -1,6 +1,6 @@
 #!/bin/bash
 set -e
-Version=2.6
+Version=2.7
 
 #if (( $EUID != 0 )); then
 #   echo -e "$(tput setaf 11)This must be run as root. Try 'sudo $0'.$(tput sgr0)"
@@ -65,6 +65,8 @@ echo -e "\nDone"
 
 function tigervnc_ {
 echo -e "$(tput setaf 10)\nInstall TigerVnc:$(tput sgr0)"
+if [ ! -f /opt/.alreadyvnc ]
+then
 wget -c http://folivier.homelinux.org/cube/pack/alma.tar.xz
 sudo cp -r -f alma.tar.xz /
 rm alma.tar.xz
@@ -83,6 +85,8 @@ sudo cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.
 sudo systemctl daemon-reload
 sudo systemctl start vncserver@:1
 sudo systemctl enable vncserver@:1
+sudo touch /opt/.alreadyvnc
+fi
 sudo firewall-cmd --permanent --add-service=vnc-server
 sudo firewall-cmd --reload
 sudo firewall-cmd --add-port=5901/tcp --permanent
@@ -248,14 +252,13 @@ update_
 lvm2_
 drive_
 wol_
-#tigervnc_
+tigervnc_
 chia_
 miner_
 config_
 webmin_
 
-echo -e "\n\n"
-echo -e "\n\n$(tput setaf 10)VNC password:$(tput sgr0)"
+echo -e "\n"
+echo -e "$(tput setaf 10)VNC password:$(tput sgr0)"
 vncpasswd
-
 echo -e "\nProcess finished !! \nhappy plotting."