diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-06 16:51:19 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-06 16:51:19 +0200 |
commit | 1eb3d3da3fddfacf17fd430d441e05d75b5e5771 (patch) | |
tree | ace69c0aff4c5809933ba2512ead412766fa428a /update-serv.pl | |
parent | Create LICENSE (diff) | |
download | joe-scripts-1eb3d3da3fddfacf17fd430d441e05d75b5e5771.tar.gz joe-scripts-1eb3d3da3fddfacf17fd430d441e05d75b5e5771.tar.bz2 joe-scripts-1eb3d3da3fddfacf17fd430d441e05d75b5e5771.tar.xz joe-scripts-1eb3d3da3fddfacf17fd430d441e05d75b5e5771.tar.zst joe-scripts-1eb3d3da3fddfacf17fd430d441e05d75b5e5771.zip |
Scripts
Diffstat (limited to 'update-serv.pl')
-rwxr-xr-x | update-serv.pl | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/update-serv.pl b/update-serv.pl new file mode 100755 index 0000000..0d58db5 --- /dev/null +++ b/update-serv.pl @@ -0,0 +1,23 @@ +#!/usr/local/bin/perl + +use strict; +use warnings; +use Term::ANSIColor; + +sub main { + system( + '/usr/local/bin/dash', + '-c', + 'git -C /usr/local/www/jozan pull >/dev/null 2>&1' + ); + system( + '/usr/local/bin/dash', + '-c', + 'git -C /root/scripts pull >/dev/null 2>&1' + ); + exit; +} + +main(); + +__END__ |