Eolisation de l'applicatif MSE
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61-pve 728B

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/bin/bash
  2. if [ -f /etc/nginx/sites-enabled/mse-nginx.conf ]; then
  3. rm -f /etc/nginx/sites-enabled/mse-nginx.conf
  4. fi
  5. if [ -f /etc/nginx/sites-available/mse-nginx.conf ]; then
  6. rm -f /etc/nginx/sites-available/mse-nginx.conf
  7. fi
  8. # Apache conf
  9. a2dismod mpm_event
  10. a2enmod mpm_worker
  11. apacheMods="proxy_fcgi rewrite expires"
  12. for mod in ${apacheMods}
  13. do
  14. a2enmod ${mod}
  15. done
  16. NFSTAG=$(grep "NFS" /etc/fstab)
  17. res=${?}
  18. if [[ ${res} -eq 0 ]]
  19. then
  20. exit 0
  21. else
  22. if [[ $(CreoleGet nfsUploads non) == "oui" ]]
  23. then
  24. NFSADDR=$(CreoleGet mseNFSaddr)
  25. NFSMNPT=$(CreoleGet mseNFSMntPnt)
  26. echo "# NFS" >> /etc/fstab
  27. echo "${NFSADDR} ${NFSMNPT} nfs defaults,rw,_netdev 0 0" >> /etc/fstab
  28. mount -a
  29. fi
  30. fi