Add 'sh/edit.sh'

This commit is contained in:
Sarimoko 2021-07-08 03:14:49 +00:00
parent c25f77e4af
commit 23bf3647e7
1 changed files with 16 additions and 0 deletions

16
sh/edit.sh Normal file
View File

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