Created my repo Shell Scripts

This commit is contained in:
2018-01-29 09:25:34 +01:00
commit 43c7e0cc64
6 changed files with 128 additions and 0 deletions

17
_test.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
APACHE=$(httpd -v | grep "version" | awk '{print $3}' | awk -F/ '{print $2}')
PHP=$(php -v | grep "cli" | awk '{print $2}')
#echo $APACHE
#echo $PHP
cd /Users/bruno/Documents/config\ web\ \(homebrew\)/
if [ ! -d "apache $APACHE" ]; then mkdir "apache $APACHE"; fi
cp /usr/local/etc/httpd/httpd.conf /Users/bruno/Documents/config\ web\ \(homebrew\)/apache\ $APACHE/
cp /usr/local/etc/httpd/extra/httpd-vhosts.conf /Users/bruno/Documents/config\ web\ \(homebrew\)/apache\ $APACHE/
if [ ! -d "php $PHP" ]; then mkdir "php $PHP"; fi
cp /usr/local/etc/php/7.2/php.ini /Users/bruno/Documents/config\ web\ \(homebrew\)/php\ $PHP/