aboutsummaryrefslogtreecommitdiffstats
path: root/src/update/serv.pl
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-07-08 16:43:14 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-07-08 16:43:14 +0200
commitf0cb40d9e4b8d3285ac7125fb40433d65fae172e (patch)
treedd4f02807e2744c2f21cef41d717c1778aa7d479 /src/update/serv.pl
parentFile owner fixes (diff)
downloadjoe-scripts-f0cb40d9e4b8d3285ac7125fb40433d65fae172e.tar.gz
joe-scripts-f0cb40d9e4b8d3285ac7125fb40433d65fae172e.tar.bz2
joe-scripts-f0cb40d9e4b8d3285ac7125fb40433d65fae172e.tar.xz
joe-scripts-f0cb40d9e4b8d3285ac7125fb40433d65fae172e.tar.zst
joe-scripts-f0cb40d9e4b8d3285ac7125fb40433d65fae172e.zip
Directory tree rework
Diffstat (limited to 'src/update/serv.pl')
-rwxr-xr-xsrc/update/serv.pl28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/update/serv.pl b/src/update/serv.pl
new file mode 100755
index 0000000..77c64ff
--- /dev/null
+++ b/src/update/serv.pl
@@ -0,0 +1,28 @@
+#!/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 /usr/local/www/git-jozan pull >/dev/null 2>&1'
+ );
+ system(
+ '/usr/local/bin/dash',
+ '-c',
+ 'git -C /root/scripts pull >/dev/null 2>&1'
+ );
+ exit;
+}
+
+main();
+
+__END__