aboutsummaryrefslogtreecommitdiffstats
path: root/src/update-serv.pl
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-07-07 20:49:26 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-07-07 20:49:26 +0200
commitc546fee3fa3f3f1430bd289c51fc6a9e1a1030bf (patch)
tree5cf3e5c2396ef327383fba372cedfccf7bb5d98f /src/update-serv.pl
parenttest (diff)
downloadjoe-scripts-c546fee3fa3f3f1430bd289c51fc6a9e1a1030bf.tar.gz
joe-scripts-c546fee3fa3f3f1430bd289c51fc6a9e1a1030bf.tar.bz2
joe-scripts-c546fee3fa3f3f1430bd289c51fc6a9e1a1030bf.tar.xz
joe-scripts-c546fee3fa3f3f1430bd289c51fc6a9e1a1030bf.tar.zst
joe-scripts-c546fee3fa3f3f1430bd289c51fc6a9e1a1030bf.zip
Better dir
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__