-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy patheuroparc.sample
47 lines (35 loc) · 1015 Bytes
/
europarc.sample
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/env bash
# Install some dependencies
yum -y install tmux vim git-core
# Perform a bunch of actions as zendev user
su - zendev <<EOF
##############
# Set up SSH #
##############
mkdir -p ~/.ssh;
cat <<EOS> /home/zendev/.ssh/config
StrictHostKeyChecking no
EOS
cat <<EOS> /home/zendev/.ssh/authorized_keys
[snip]
EOS
cat <<EOS> /home/zendev/.ssh/id_dsa
[snip]
EOS
cat <<EOS> /home/zendev/.ssh/id_dsa.pub
[snip]
EOS
chmod 700 ~/.ssh && chmod 600 ~/.ssh/*;
#################################################
# Set up dotfiles #
# (see http://dotfiles.github.io/ for examples) #
# (I forked http://mths.be/dotfiles) #
#################################################
if [ ! -d /home/zendev/dotfiles ]; then
cd /home/zendev && git clone [email protected]:iancmcc/dotfiles;
else
cd /home/zendev/dotfiles && git pull;
fi;
cd /home/zendev/dotfiles && git submodule init && git submodule update;
/home/zendev/dotfiles/bootstrap.sh -f 2>&1 > /dev/null;
EOF