GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: Some Ruby Tools to work on Amazon S3 and EC2, such as buckets list, creation, mysql backup to S3, cron jobs, and Gentoo specific little hacks... ;)
Clone URL: git://github.com/fred/amazon_ruby_tools.git
update folder to link after Linux boot
fred (author)
Fri May 02 13:27:59 -0700 2008
commit  1a658ede99d0746cafd4c43eacf43102d15d9ea1
tree    589da92dd29c6d700fc5769b9b1083a7026fda7e
parent  9e7a3eec70b99a1a484f19a2fc237bf337d21e3f
...
1
2
3
4
5
6
7
8
 
9
10
11
12
13
 
14
15
16
...
24
25
26
27
28
29
30
31
32
33
34
 
35
...
1
2
 
 
 
 
 
 
3
4
5
6
 
 
7
8
9
10
...
18
19
20
 
 
21
 
 
 
 
22
23
24
0
@@ -1,16 +1,10 @@
0
 require 'fileutils'
0
 
0
-@dirs = ["/mnt/var/log",
0
- "/mnt/var/log/mysql",
0
- "/mnt/var/log/news",
0
- "/mnt/var/log/nginx",
0
- "/mnt/var/log/sandbox",
0
- "/mnt/gentoo/distfiles",
0
+@dirs = ["/mnt/gentoo/distfiles",
0
   "/mnt/gentoo/log",
0
   "/mnt/gentoo/portage",
0
   "/mnt/gentoo/tmp",
0
- "/mnt/var/tmp",
0
- "/mnt/tmp"
0
+ "/mnt/app"
0
 ]
0
 
0
 
0
@@ -24,10 +18,5 @@ require 'fileutils'
0
   end
0
 end
0
 
0
-FileUtils.rm("/var/log", :force => true)
0
-FileUtils.rm("/var/tmp", :force => true)
0
 
0
-FileUtils.ln_s("/mnt/var/log", "/var/log", :force => true)
0
-FileUtils.ln_s("/mnt/var/tmp", "/var/tmp", :force => true)
0
-
0
-FileUtils.chown 'mysql', 'mysql', '/mnt/var/log/mysql'
0
\ No newline at end of file
0
+FileUtils.ln_s("/mnt/apps", "/var/www/apps", :force => true)
0
\ No newline at end of file
...
34
35
36
37
 
38
 
39
40
41
42
43
 
44
45
46
...
34
35
36
 
37
38
39
40
41
42
43
44
45
46
47
48
0
@@ -34,13 +34,15 @@ end
0
 def untar_portage
0
   FileUtils.rm("/mnt/gentoo/portage", :force => true)
0
   puts "Starting to untar file to local portage. Wait 2 minutes"
0
- puts "cd /mnt/gentoo/ && tar -xzpf #{@local_portage}"
0
+ puts "Decompressing Portage file #{@local_portage}"
0
   IO.popen("cd /mnt/gentoo/ && rm -rf portage && tar -xzpf #{@local_portage}")
0
+ sleep 120
0
 end
0
 
0
 def update_portage
0
   puts "Updating portage via EIX"
0
   IO.popen("eix-sync")
0
+ sleep 120
0
 end
0
 
0
 download_portage

Comments

    No one has commented yet.