update,
This commit is contained in:
23
scripts/new_customer.sh
Normal file
23
scripts/new_customer.sh
Normal file
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -ex
|
||||
|
||||
DATE_STRING=`date +"%m-%d-%Y"`
|
||||
|
||||
rm -rf $1
|
||||
|
||||
cp -r _new_user $1
|
||||
|
||||
pushd $1
|
||||
# sed -i 's/_new_user/$1/g' *
|
||||
grep -rl _new_user . | xargs sed -i 's/_new_user/'$1'/g'
|
||||
grep -rl DATE_STRING . | xargs sed -i 's/DATE_STRING/'$DATE_STRING'/g'
|
||||
popd
|
||||
|
||||
pushd $1/docker-share
|
||||
./up.sh
|
||||
popd
|
||||
|
||||
./scripts/wait_server_ready.sh $1
|
||||
|
||||
echo 'done'
|
Reference in New Issue
Block a user