File tree 9 files changed +10
-122
lines changed
9 files changed +10
-122
lines changed Original file line number Diff line number Diff line change @@ -8,19 +8,9 @@ Write-Host "Are you sure this is what you want to do?"
8
8
9
9
$confirmation = Read-Host " You must type 'yes' to confirm: "
10
10
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"
24
14
Write-Host " completed"
25
15
} else {
26
16
Write-Host " aborted"
Original file line number Diff line number Diff line change @@ -8,17 +8,8 @@ echo "Are you sure this is what you want to do?"
8
8
read -p " You must type 'yes' to confirm: " -r
9
9
echo
10
10
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/*
22
13
echo " completed"
23
14
else
24
15
echo " aborted"
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -8,19 +8,9 @@ Write-Host "Are you sure this is what you want to do?"
8
8
9
9
$confirmation = Read-Host " You must type 'yes' to confirm: "
10
10
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"
24
14
Write-Host " completed"
25
15
} else {
26
16
Write-Host " aborted"
Original file line number Diff line number Diff line change @@ -8,17 +8,8 @@ echo "Are you sure this is what you want to do?"
8
8
read -p " You must type 'yes' to confirm: " -r
9
9
echo
10
10
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/*
22
13
echo " completed"
23
14
else
24
15
echo " aborted"
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments