Created my repo Shell Scripts
This commit is contained in:
17
_test.sh
Executable file
17
_test.sh
Executable 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/
|
||||
Reference in New Issue
Block a user