forked from JonJagger/cyber-dojo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpull.sh
More file actions
25 lines (20 loc) · 715 Bytes
/
pull.sh
File metadata and controls
25 lines (20 loc) · 715 Bytes
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
#!/bin/bash
# Use to install the latest cyberdojo git repo onto cyber-dojo.com
# get latest source from https://github.com/JonJagger/cyberdojo
# if it asks for a password just hit return
git pull
# ensure pulled files have correct rights
# don't chmod or chgrp the katas folder
for folder in app config exercises languages lib public script spec test
do
eval "chown -R www-data /var/www/cyberdojo/$folder"
eval "chgrp -R www-data /var/www/cyberdojo/$folder"
done
eval "chown www-data /var/www/cyberdojo/*"
eval "chgrp www-data /var/www/cyberdojo/*"
eval "chown www-data /var/www/cyberdojo/.*"
eval "chgrp www-data /var/www/cyberdojo/.*"
# poke rails
bundle install
# restart apache
service apache2 restart