diff options
-rw-r--r-- | README.org | 3 | ||||
-rw-r--r-- | gitjoe-rmuser.pl | 2 | ||||
-rwxr-xr-x | update-serv.pl | 23 | ||||
-rwxr-xr-x | update-site.sh | 5 |
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 |