It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Overwrite the Start-stash.sh

AKASH BHARDWAJ Nov 16, 2015

Hi,

I need to make 1 change where ssh= false should be replaced with ssh=true.

Either way i am also comfortable with Copying the whole content of my existing stash-config.properties file with newly created Stash-config.propeties1 .

My purpose here is to when stash stops for hourly backup i need to copy the newly created file overwrite the existing stash-config.prpoerties file when start-stash.sh runs.

 

Could someone please suggest how could these be achieved.


I know it would be simply adding 1 line under start-stash.sh file.

 

Many Thanks,

Akash

1 answer

1 accepted

0 votes
Answer accepted
AKASH BHARDWAJ Nov 17, 2015

I have got it, just add cp command to overwrite .

 

cp source file target file --> under stop-stash.sh

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder

...ipe.sh :  #!/bin/bash source "$(dirname "$0")/common.sh" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

1,801 views 1 19
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you