Skip to content

Commit e8fd543

Browse files
Merge pull request #281 from jkatz/quickstart-sed
Use `-i` flag for sed to work across different versions
2 parents 72d9da6 + 647514f commit e8fd543

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

examples/quickstart-for-gke.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ read STORAGE_CLASS
120120
echo ""
121121
echo "Setting up pgo storage configuration for the selected storageclass..." | tee -a $LOG
122122
cp $COROOT/examples/pgo.yaml.storageclass $COROOT/conf/apiserver/pgo.yaml
123-
sed --in-place=.bak 's/standard/'"$STORAGE_CLASS"'/' $COROOT/conf/apiserver/pgo.yaml
124-
sed --in-place=.bak 's/demo/'"$NAMESPACE"'/' $COROOT/deploy/service-account.yaml
125-
sed --in-place=.bak 's/demo/'"$NAMESPACE"'/' $COROOT/deploy/rbac.yaml
123+
sed -i .bak 's/standard/'"$STORAGE_CLASS"'/' $COROOT/conf/apiserver/pgo.yaml
124+
sed -i .bak 's/demo/'"$NAMESPACE"'/' $COROOT/deploy/service-account.yaml
125+
sed -i .bak 's/demo/'"$NAMESPACE"'/' $COROOT/deploy/rbac.yaml
126126

127127
echo ""
128128
echo "Setting up pgo client authentication..." | tee -a $LOG

examples/quickstart-for-ocp.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,14 @@ read STORAGE_CLASS
122122
echo ""
123123
echo "Setting up pgo storage configuration for the selected storageclass..." | tee -a $LOG
124124
cp $COROOT/examples/pgo.yaml.storageclass $COROOT/conf/apiserver/pgo.yaml
125-
sed --in-place=.bak 's/standard/'"$STORAGE_CLASS"'/' $COROOT/conf/apiserver/pgo.yaml
126-
sed --in-place=.bak 's/demo/'"$PROJECT"'/' $COROOT/deploy/service-account.yaml
127-
sed --in-place=.bak 's/demo/'"$PROJECT"'/' $COROOT/deploy/rbac.yaml
125+
sed -i .bak 's/standard/'"$STORAGE_CLASS"'/' $COROOT/conf/apiserver/pgo.yaml
126+
sed -i .bak 's/demo/'"$PROJECT"'/' $COROOT/deploy/service-account.yaml
127+
sed -i .bak 's/demo/'"$PROJECT"'/' $COROOT/deploy/rbac.yaml
128128

129129
echo ""
130130
echo -n "Storage classes can require a fsgroup setting to be specified in the security context of your pods. Typically, this value is 26, but on some storage providers this value is blank. Enter your fsgroup setting if required or leave blank if not required: "
131131
read FSGROUP
132-
sed --in-place=.bak 's/26/'"$FSGROUP"'/' $COROOT/conf/apiserver/pgo.yaml
132+
sed -i .bak 's/26/'"$FSGROUP"'/' $COROOT/conf/apiserver/pgo.yaml
133133

134134
echo ""
135135
echo "Setting up pgo client authentication..." | tee -a $LOG

0 commit comments

Comments
 (0)