Skip to content

Commit f12e856

Browse files
author
Sean P. Kane
committed
Fix clean scripts
1 parent 2ee5337 commit f12e856

9 files changed

+10
-122
lines changed

.git_keep

Whitespace-only changes.

bot-with-server/scripts/docker-class-201/clean-all-data.ps1

+3-13
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,9 @@ Write-Host "Are you sure this is what you want to do?"
88

99
$confirmation = Read-Host "You must type 'yes' to confirm: "
1010
if ($confirmation -eq 'yes') {
11-
rm "$BASE/layout/mongodb/data/db/*" -r -fo
12-
rm "$BASE/layout/rocketchat/data/uploads/*" -r -fo
13-
rm "$BASE/layout/hubot/data/scripts/*" -r -fo
14-
rm "$BASE/layout/postgres/data/data" -r -fo
15-
rm "$BASE/layout/registry/data/docker" -r -fo
16-
rm "$BASE/layout/jenkins/data/*" -r -fo
17-
rm "$BASE/layout/jenkins/data/.groovy" -r -fo
18-
rm "$BASE/layout/jenkins/data/.java" -r -fo
19-
rm "$BASE/layout/gogs/data/git" -r -fo
20-
rm "$BASE/layout/gogs/data/gogs" -r -fo
21-
rm "$BASE/layout/gogs/data/ssh" -r -fo
22-
cp "$BASE/layout/postgres/data/.git_keep" "$BASE/layout/jenkins/data/.git_keep"
23-
cp "$BASE/layout/postgres/data/.git_keep" "$BASE/layout/mongodb/data/db/.git_keep"
11+
rm "$BASE/hubot-docker/bot-with-server/mongodb/data/db/*" -r -fo
12+
rm "$BASE/hubot-docker/bot-with-server/rocketchat/data/uploads/*" -r -fo
13+
cp "$BASE/hubot-docker/.git_keep" "$BASE/hubot-docker/bot-with-server/mongodb/data/db/.git_keep"
2414
Write-Host "completed"
2515
} else {
2616
Write-Host "aborted"

bot-with-server/scripts/docker-class-201/clean-all-data.sh

+2-11
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,8 @@ echo "Are you sure this is what you want to do?"
88
read -p "You must type 'yes' to confirm: " -r
99
echo
1010
if [[ $REPLY == "yes" ]]; then
11-
rm -rf ${BASE}/layout/mongodb/data/db/*
12-
rm -rf ${BASE}/layout/rocketchat/data/uploads/*
13-
rm -rf ${BASE}/layout/hubot/data/scripts/*
14-
rm -rf ${BASE}/layout/postgres/data/data
15-
rm -rf ${BASE}/layout/registry/data/docker
16-
rm -rf ${BASE}/layout/jenkins/data/*
17-
rm -rf ${BASE}/layout/jenkins/data/.groovy
18-
rm -rf ${BASE}/layout/jenkins/data/.java
19-
rm -rf ${BASE}/layout/gogs/data/git
20-
rm -rf ${BASE}/layout/gogs/data/gogs
21-
rm -rf ${BASE}/layout/gogs/data/ssh
11+
rm -rf ${BASE}/hubot-docker/bot-with-server/mongodb/data/db/*
12+
rm -rf ${BASE}/hubot-docker/bot-with-server/rocketchat/data/uploads/*
2213
echo "completed"
2314
else
2415
echo "aborted"

bot-with-server/scripts/docker-class-201/clean-jenkins-data.ps1

-19
This file was deleted.

bot-with-server/scripts/docker-class-201/clean-jenkins-data.sh

-18
This file was deleted.

bot-with-server/scripts/docker-workshop/clean-all-data.ps1

+3-13
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,9 @@ Write-Host "Are you sure this is what you want to do?"
88

99
$confirmation = Read-Host "You must type 'yes' to confirm: "
1010
if ($confirmation -eq 'yes') {
11-
rm "$BASE/layout/mongodb/data/db/*" -r -fo
12-
rm "$BASE/layout/rocketchat/data/uploads/*" -r -fo
13-
rm "$BASE/layout/hubot/data/scripts/*" -r -fo
14-
rm "$BASE/layout/postgres/data/data" -r -fo
15-
rm "$BASE/layout/registry/data/docker" -r -fo
16-
rm "$BASE/layout/jenkins/data/*" -r -fo
17-
rm "$BASE/layout/jenkins/data/.groovy" -r -fo
18-
rm "$BASE/layout/jenkins/data/.java" -r -fo
19-
rm "$BASE/layout/gogs/data/git" -r -fo
20-
rm "$BASE/layout/gogs/data/gogs" -r -fo
21-
rm "$BASE/layout/gogs/data/ssh" -r -fo
22-
cp "$BASE/layout/postgres/data/.git_keep" "$BASE/layout/jenkins/data/.git_keep"
23-
cp "$BASE/layout/postgres/data/.git_keep" "$BASE/layout/mongodb/data/db/.git_keep"
11+
rm "$BASE/hubot-docker/bot-with-server/mongodb/data/db/*" -r -fo
12+
rm "$BASE/hubot-docker/bot-with-server/rocketchat/data/uploads/*" -r -fo
13+
cp "$BASE/hubot-docker/.git_keep" "$BASE/hubot-docker/bot-with-server/mongodb/data/db/.git_keep"
2414
Write-Host "completed"
2515
} else {
2616
Write-Host "aborted"

bot-with-server/scripts/docker-workshop/clean-all-data.sh

+2-11
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,8 @@ echo "Are you sure this is what you want to do?"
88
read -p "You must type 'yes' to confirm: " -r
99
echo
1010
if [[ $REPLY == "yes" ]]; then
11-
rm -rf ${BASE}/layout/mongodb/data/db/*
12-
rm -rf ${BASE}/layout/rocketchat/data/uploads/*
13-
rm -rf ${BASE}/layout/hubot/data/scripts/*
14-
rm -rf ${BASE}/layout/postgres/data/data
15-
rm -rf ${BASE}/layout/registry/data/docker
16-
rm -rf ${BASE}/layout/jenkins/data/*
17-
rm -rf ${BASE}/layout/jenkins/data/.groovy
18-
rm -rf ${BASE}/layout/jenkins/data/.java
19-
rm -rf ${BASE}/layout/gogs/data/git
20-
rm -rf ${BASE}/layout/gogs/data/gogs
21-
rm -rf ${BASE}/layout/gogs/data/ssh
11+
rm -rf ${BASE}/hubot-docker/bot-with-server/mongodb/data/db/*
12+
rm -rf ${BASE}/hubot-docker/bot-with-server/rocketchat/data/uploads/*
2213
echo "completed"
2314
else
2415
echo "aborted"

bot-with-server/scripts/docker-workshop/clean-jenkins-data.ps1

-19
This file was deleted.

bot-with-server/scripts/docker-workshop/clean-jenkins-data.sh

-18
This file was deleted.

0 commit comments

Comments
 (0)