14 | | Copy users |
| 14 | Copy users: |
| 15 | {{{ |
| 16 | adduser xxx |
| 17 | less /etc/shadow |
| 18 | }}} |
| 19 | (copy & paste password) |
| 20 | |
| 21 | Local Repo: |
| 22 | {{{ |
| 23 | mkdir -p /home/sahana/bzr |
| 24 | cd /home/sahana/bzr |
| 25 | bzr branch lp:sahana-eden trunk |
| 26 | vim /home/sahana/bzr/update |
| 27 | cd /home/sahana/bzr/trunk |
| 28 | bzr pull |
| 29 | bzr export /home/sahana/bzr/eden.tar.gz /home/sahana/bzr/trunk |
| 30 | |
| 31 | vim /etc/crontab |
| 32 | 0 */6 * * * root /home/sahana/bzr/update |
| 33 | }}} |
| 34 | |
| 35 | Fabfile: |
| 36 | {{{ |
| 37 | mkdir ~/release |
| 38 | wget http://code.fabfile.org/projects/fabric/files/Fabric-0.9.3.tar.gz |
| 39 | tar zxvf Fabric-0.9.3.tar.gz |
| 40 | cd Fabric-0.9.3 |
| 41 | python setup.py install |
| 42 | cd .. |
| 43 | wget http://pypi.python.org/packages/source/p/pexpect/pexpect-2.4.tar.gz |
| 44 | tar zxvf pexpect-2.4.tar.gz |
| 45 | cd pexpect-2.4 |
| 46 | python setup.py install |
| 47 | cd .. |
| 48 | cp /home/sahana/bzr/trunk/static/scripts/tools/fabfile.py . |
| 49 | (restore from backup) |
| 50 | cp sahana_release* /root/.ssh |
| 51 | }}} |