-
Notifications
You must be signed in to change notification settings - Fork 0
/
developer-option-part1-postgres-user-keygen-run-as-vagrant.sh
executable file
·34 lines (32 loc) · 2.05 KB
/
developer-option-part1-postgres-user-keygen-run-as-vagrant.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
sudo su -c "yes y|ssh-keygen -t rsa -N '' -f ~/.ssh/id_rsa" -s /bin/sh postgres
echo ''
echo '---------------------------------------------------------------------------'
echo '---------------------------------------------------------------------------'
echo '---------------------------------------------------------------------------'
echo ''
echo "CUT AND PASTE THE FOLLOWING PUBLIC SSH KEY INTO YOUR GITHUB ACCOUNT"
echo "i.e. under 'Settings' (right click your user icon in top right) then 'SSH and GPG Keys' then 'New SSH key'"
echo ''
echo '---------------------------------------------------------------------------'
echo '---------------------------------------------------------------------------'
echo '---------------------------------------------------------------------------'
echo ''
sudo cat /var/lib/pgsql/.ssh/id_rsa.pub
echo ''
echo '---------------------------------------------------------------------------'
echo '---------------------------------------------------------------------------'
echo '---------------------------------------------------------------------------'
echo ''
echo 'FIRST TIME ONLY fork https://github.com/dgapitts/pg-ora-demo-scripts'
echo 'Goto https://github.com/dgapitts/pg-ora-demo-scripts and then press Fork button In the top-right corner of the page, click Fork.'
echo '(as per https://help.github.com/articles/fork-a-repo/)'
cp /vagrant/developer-option-part2-setup-pg-ora-demo-scripts.sh /tmp
sudo su -c "cd /tmp/developer-option-part2-setup-pg-ora-demo-scripts.sh ~" /bin/sh postgres
echo ''
echo '---------------------------------------------------------------------------'
echo '---------------------------------------------------------------------------'
echo '---------------------------------------------------------------------------'
echo ''
echo 'Once you have added your github keys and forked the repo - su to postgres and run
echo '~/developer-option-part2-setup-pg-ora-demo-scripts.sh userid useremail username'
echo "for example: ~/developer-option-part2-setup-pg-ora-demo-scripts.sh dgapitts dgapitts@gmail.com \"Dave Pitts\""