aboutsummaryrefslogtreecommitdiffstats
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
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 '')
-rw-r--r--README.org3
-rw-r--r--gitjoe-rmuser.pl2
-rwxr-xr-xupdate-serv.pl23
-rwxr-xr-xupdate-site.sh5
4 files changed, 28 insertions, 5 deletions
diff --git a/README.org b/README.org
new file mode 100644
index 0000000..8e7ebbb
--- /dev/null
+++ b/README.org
@@ -0,0 +1,3 @@
+#+TITLE: My server scripts
+
+These are a bunch of scripts for my VPS server.
diff --git a/gitjoe-rmuser.pl b/gitjoe-rmuser.pl
index f84dbc6..965ed7a 100644
--- a/gitjoe-rmuser.pl
+++ b/gitjoe-rmuser.pl
@@ -26,3 +26,5 @@ EOF"
}
main();
+
+__END__
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__
diff --git a/update-site.sh b/update-site.sh
deleted file mode 100755
index 57b9e34..0000000
--- a/update-site.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/usr/local/bin/dash
-
-git -C /usr/local/www/jozan pull
-git -C /root/scripts pull
-exit