Created
May 24, 2012 21:10
-
-
Save flavianmissi/2784261 to your computer and use it in GitHub Desktop.
Multiline sed replace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| REPO_PATH="/home/ubuntu" | |
| CONF='[gitosis]\ | |
| repositories = /mnt/repositories\ | |
| generate-files-in = /mnt/gitosis\ | |
| gitweb = no\ | |
| daemon = no' | |
| sed -ie "s,\[gitosis\],$CONF," ${REPO_PATH}/gitosis.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this will create the gitosis.confe file :B