Add 'sh/edit.sh'
This commit is contained in:
parent
c25f77e4af
commit
23bf3647e7
|
@ -0,0 +1,16 @@
|
|||
#!/bin/sh
|
||||
echo "# ===================================================================== #"
|
||||
echo "# Apache Config"
|
||||
echo "# ===================================================================== #"
|
||||
echo "# E X A M P L E"
|
||||
echo "# ===================================================================== #"
|
||||
echo "# /etc/apache2/sites-available/example.conf"
|
||||
echo "# --------------------------------------------------------------------- #"
|
||||
echo "# Type example NOT example.conf"
|
||||
echo "# --------------------------------------------------------------------- #"
|
||||
read -p "Enter filename: " apache_file
|
||||
sudo nano /etc/apache2/sites-available/$apache_file.conf
|
||||
echo "# --------------------------------------------------------------------- #"
|
||||
echo "# Reloading apache..."
|
||||
echo "# --------------------------------------------------------------------- #"
|
||||
sudo sudo service apache2 reload
|
Loading…
Reference in New Issue