diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-26 16:01:33 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-26 16:01:33 +0200 |
commit | 0e662cf46eccfc6de58b8f4f9566c8d39d0aa810 (patch) | |
tree | 08478eb38bc74230343c819532ce5d6d918277c4 /src/update/vps.pl | |
parent | Better scripts (diff) | |
download | joe-scripts-0e662cf46eccfc6de58b8f4f9566c8d39d0aa810.tar.gz joe-scripts-0e662cf46eccfc6de58b8f4f9566c8d39d0aa810.tar.bz2 joe-scripts-0e662cf46eccfc6de58b8f4f9566c8d39d0aa810.tar.xz joe-scripts-0e662cf46eccfc6de58b8f4f9566c8d39d0aa810.tar.zst joe-scripts-0e662cf46eccfc6de58b8f4f9566c8d39d0aa810.zip |
Cool
Diffstat (limited to 'src/update/vps.pl')
-rwxr-xr-x | src/update/vps.pl | 28 |
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; |