Skip to content

Commit 38f0a5a

Browse files
Merge pull request #223 from jeremiaswerner/walk_fix1
only delete the corresponding .rclone.conf of the selected resource g…
2 parents 9acee40 + fc4b909 commit 38f0a5a

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

beta/serverless-fleets/init-fleet-sandbox

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ CLEANUP_ON_SUCCESS=${CLEANUP_ON_SUCCESS:=false}
66
REGION="${REGION:=eu-de}"
77
NAME_PREFIX="${NAME_PREFIX:=ce-fleet-sandbox}"
88
SETUP_LOGGING="${SETUP_LOGGING:-true}"
9-
SETUP_MONITORING="${SETUP_MONITORING:-true}"
9+
SETUP_MONITORING="${SETUP_MONITORING:-false}"
1010

1111

1212
# Generate a short uuid for some resources
@@ -41,7 +41,7 @@ function clean() {
4141
target_region $REGION
4242
target_resource_group $resource_group_name
4343

44-
rm -rf .rclone*
44+
rm -rf .rclone_${resource_group_name}.conf
4545

4646
if [[ "$SETUP_MONITORING" == "true" ]]; then
4747
ibmcloud resource service-key-delete ${sysdig_key_name} -f -q 2>/dev/null
@@ -126,14 +126,15 @@ print_msg "\n======================================================"
126126
print_msg " Setting up \"Code Engine Serverless Fleet\" sample"
127127
print_msg "======================================================\n"
128128

129-
if [[ "$SETUP_LOGGING" != "true" || "$SETUP_MONITORING" != "true" ]]; then
129+
#if [[ "$SETUP_LOGGING" != "true" || "$SETUP_MONITORING" != "true" ]]; then
130+
if [[ "$SETUP_LOGGING" != "true" ]]; then
130131
print_msg " ATTENTION: You requested to setup a fleet sandbox without : \n"
131132
if [[ "$SETUP_LOGGING" != "true" ]]; then
132133
print_msg " - logging support \n"
133134
fi
134-
if [[ "$SETUP_MONITORING" != "true" ]]; then
135-
print_msg " - monitoring support \n"
136-
fi
135+
# if [[ "$SETUP_MONITORING" != "true" ]]; then
136+
# print_msg " - monitoring support \n"
137+
# fi
137138
print_msg "Do you really want to continue setup without these services? They cannot be added later \n"
138139
read -p "Continue [y|n]? " yn
139140
case $yn in

0 commit comments

Comments
 (0)