xampp : param stop

This commit is contained in:
_N3m0 2023-09-18 11:52:13 +02:00
parent 12b0fc6182
commit 35967408ed
1 changed files with 8 additions and 6 deletions

14
xampp
View File

@ -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