This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#script to upgrade Apache web server | |
/usr/local/apache2/bin/httpd -v | |
echo "Upgrade apache ? [y/n]" | |
read ans | |
if [ "$ans" = "y" ] | |
then | |
echo -e "\n Backing up Apache dir \n" | |
cp -pr /usr/local/apache2 /usr/local/apache2-`date +%F`.bk | |
tar -zxvf httpd-2.2.*.tar.gz |
NewerOlder