diff --git a/xampp b/xampp index 911d5c5..70aaff1 100755 --- a/xampp +++ b/xampp @@ -1,7 +1,9 @@ #!/bin/bash -sudo systemctl stop apache2 -sudo /opt/lampp/lampp start -echo "appuyez sur entrez pour quitter xampp" -read -sudo /opt/lampp/lampp stop -sudo systemctl start apache2 + +if [[ $1 == "stop" ]]; then + sudo /opt/lampp/lampp stop + sudo systemctl start apache2 +else + sudo systemctl stop apache2 + sudo /opt/lampp/lampp start +fi