Last active
August 29, 2015 14:14
-
-
Save nottrobin/3da2be44e6e9b214df04 to your computer and use it in GitHub Desktop.
Setup user permissions for the bzr-sync server
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
| sudo adduser bzr-sync # Create new bzr-sync user | |
| sudo su bzr-sync # Change to bzr-sync user | |
| ssh-keygen # Create new RSA key | |
| cat ~/.ssh/id_rsa.pub # Add this public key to Github and Launchpad | |
| # Now check we can clone your github projects properly | |
| git clone git@github.com:example/example-project | |
| rm -r example-project # Once we've tested this, delete the project again | |
| # And check we can branch and push to launchpad projects | |
| bzr branch lp:example-project # Branch a project | |
| cd example-project # Change to its directory | |
| bzr push :parent # Check pushing works | |
| rm example-project # Cleanup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment