This commit is contained in:
louiscklaw
2025-01-31 20:54:19 +08:00
parent 5c584709c4
commit 7d470d6921
5 changed files with 79 additions and 0 deletions

27
scripts/bulk_create.sh Normal file
View File

@@ -0,0 +1,27 @@
./scripts/new_job.sh user_test_1
./scripts/new_job.sh user_test_2
./scripts/new_job.sh user_test_3
./scripts/new_job.sh user_test_4
./scripts/new_job.sh user_test_5
./scripts/new_job.sh user_test_6
./scripts/new_job.sh user_test_7
./scripts/new_job.sh user_test_8
./scripts/new_job.sh user_test_9
./scripts/new_job.sh user_test_11
./scripts/new_job.sh user_test_12
./scripts/new_job.sh user_test_13
./scripts/new_job.sh user_test_14
./scripts/new_job.sh user_test_15
./scripts/new_job.sh user_test_16
./scripts/new_job.sh user_test_17
./scripts/new_job.sh user_test_18
./scripts/new_job.sh user_test_19
./scripts/new_job.sh user_test_21
./scripts/new_job.sh user_test_22
./scripts/new_job.sh user_test_23
./scripts/new_job.sh user_test_24
./scripts/new_job.sh user_test_25
./scripts/new_job.sh user_test_26
./scripts/new_job.sh user_test_27
./scripts/new_job.sh user_test_28
./scripts/new_job.sh user_test_29

7
scripts/gitUpdate.bat Normal file
View File

@@ -0,0 +1,7 @@
git status .
@pause
git add .
git commit -m"update scripts,"
start git push

View File

@@ -0,0 +1,7 @@
git stash
git checkout master
git merge test/siutinchu/helloworld
git checkout test/siutinchu/helloworld
git stash pop

23
scripts/new_customer.sh Normal file
View 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'

View File

@@ -0,0 +1,15 @@
#!/bin/bash
output=""
echo 'waiting for server startup'
while [[ "$output" != "helloworld "$1 ]]
do
output=$(curl https://$1.louislabs.com 2>/dev/null)
sleep 1
echo 'sleep a while ...'
done
echo 'server ready'