Commit f27e7549 authored by Dashamir Hoxha's avatar Dashamir Hoxha

Fix clone.sh

parent c42842a5
......@@ -7,6 +7,7 @@ tag=$1
[[ -z $tag ]] && echo "Usage: $0 <tag>" && exit 1
dst=bcl_$tag
dbname=${DBNAME}_$tag
src_dir=/var/www/bcl
dst_dir=/var/www/$dst
......@@ -17,7 +18,7 @@ cp -a $src_dir $dst_dir
### modify settings.php
domain=$tag.$DOMAIN
sed -i $dst_dir/sites/default/settings.php \
-e "/^\\\$databases = array/,+10 s/'database' => .*/'database' => '$dst',/" \
-e "/^\\\$databases = array/,+10 s/'database' => .*/'database' => '$dbname',/" \
-e "/^\\\$base_url/c \$base_url = \"https://$domain\";"
### create a drush alias
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment