Put all vnc install insite install_vnc.sh

parent 9a3acfbc
Pipeline #3 failed with stages
......@@ -50,7 +50,6 @@ echo "Récupération TFTP sur le serveur"
tftp ecole-dc <<'EOF'
get id_rsa.pub
get secret.tgz
get vnc.passwd
quit
EOF
sshdir="/root/.ssh/"
......@@ -68,10 +67,6 @@ rm secret.tgz
chown -R root:root /etc/cifs
cd -
mv vnc.passwd /etc/.vnc.passwd
chown administrateur:administrateur /etc/.vnc.passwd
chmod 600 /etc/.vnc.passwd
hostn=`hostname`
echo "Veuillez entrer le numéro de poste"
read numero
......
......@@ -11,6 +11,8 @@ get vnc.passwd
quit
EOF
mv vnc.passwd /etc/.vnc.passwd
chown administrateur:administrateur /etc/.vnc.passwd
chmod 600 /etc/.vnc.passwd
cp vnc.service /etc/systemd/system/
systemctl daemon-reload
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment