Updating onos-prep-karaf: sed works on Mac and Linux
Change-Id: I54a5e21a72fc00277da4fc48f2b55f678c76d6db
Showing
1 changed file
with
3 additions
and
2 deletions
... | @@ -26,8 +26,9 @@ perl -pi.old -e "s/maxFileSize=1MB/maxFileSize=10MB/g" \ | ... | @@ -26,8 +26,9 @@ perl -pi.old -e "s/maxFileSize=1MB/maxFileSize=10MB/g" \ |
26 | $KARAF_DIR/etc/org.ops4j.pax.logging.cfg | 26 | $KARAF_DIR/etc/org.ops4j.pax.logging.cfg |
27 | 27 | ||
28 | # Patch-in proper Karaf version into the startup script | 28 | # Patch-in proper Karaf version into the startup script |
29 | -sed -i '' "s/apache-karaf-\$KARAF_VERSION/$KARAF_DIR/g" bin/onos-service | 29 | +sed -i.bk "s/apache-karaf-\$KARAF_VERSION/$KARAF_DIR/g" bin/onos-service |
30 | -sed -i '' "s/apache-karaf-\$KARAF_VERSION/$KARAF_DIR/g" bin/onos-client | 30 | +sed -i.bk "s/apache-karaf-\$KARAF_VERSION/$KARAF_DIR/g" bin/onos-client |
31 | +rm -f *.bk | ||
31 | mv bin/onos-client bin/onos | 32 | mv bin/onos-client bin/onos |
32 | chmod a+x bin/onos-service bin/onos | 33 | chmod a+x bin/onos-service bin/onos |
33 | 34 | ... | ... |
-
Please register or login to post a comment