aboutsummaryrefslogtreecommitdiffstats
path: root/update-serv.pl
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-07-06 16:51:19 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-07-06 16:51:19 +0200
commit1eb3d3da3fddfacf17fd430d441e05d75b5e5771 (patch)
treeace69c0aff4c5809933ba2512ead412766fa428a /update-serv.pl
parentCreate LICENSE (diff)
downloadjoe-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-xupdate-serv.pl23
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__