aboutsummaryrefslogtreecommitdiffstats
path: root/src/update/vps.pl
blob: 3d45e064f653fa1fe3919a6c3ddfb0e093771dc8 (plain)
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
#!/usr/local/bin/perl

use strict;
use warnings;
use Term::ANSIColor;
use constant GIT_PATH	=> '/usr/local/bin/git';

sub main {
	system(
		GIT_PATH,
		'-C',
		'/usr/local/www/jozan',
		'pull',
		'origin',
		'master'
		);
	system(
		GIT_PATH,
		'-C',
		'/usr/local/www/gitjoe',
		'pull',
		'origin',
		'master'
		);
	system(
		GIT_PATH,
		'-C',
		'/root/scripts',
		'pull',
		'origin',
		'master'
		);
	print "Updated jozan website, git website and scripts.\n";
	exit;
}

main();

__END__