aboutsummaryrefslogtreecommitdiffstats
path: root/src/update/vps.pl
diff options
context:
space:
mode:
Diffstat (limited to 'src/update/vps.pl')
-rwxr-xr-xsrc/update/vps.pl28
1 files changed, 19 insertions, 9 deletions
diff --git a/src/update/vps.pl b/src/update/vps.pl
index a57344e..3d45e06 100755
--- a/src/update/vps.pl
+++ b/src/update/vps.pl
@@ -3,22 +3,32 @@
use strict;
use warnings;
use Term::ANSIColor;
+use constant GIT_PATH => '/usr/local/bin/git';
sub main {
system(
- '/usr/local/bin/dash',
- '-c',
- 'git -C /usr/local/www/jozan pull origin master >/dev/null 2>&1'
+ GIT_PATH,
+ '-C',
+ '/usr/local/www/jozan',
+ 'pull',
+ 'origin',
+ 'master'
);
system(
- '/usr/local/bin/dash',
- '-c',
- 'git -C /usr/local/www/gitjoe pull origin master >/dev/null 2>&1'
+ GIT_PATH,
+ '-C',
+ '/usr/local/www/gitjoe',
+ 'pull',
+ 'origin',
+ 'master'
);
system(
- '/usr/local/bin/dash',
- '-c',
- 'git -C /root/scripts pull origin master >/dev/null 2>&1'
+ GIT_PATH,
+ '-C',
+ '/root/scripts',
+ 'pull',
+ 'origin',
+ 'master'
);
print "Updated jozan website, git website and scripts.\n";
exit;