diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-08 17:25:19 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-08 17:25:19 +0200 |
commit | 9746c9b3f29c9017d73891f81e1e3bbce988e421 (patch) | |
tree | c030373104902c94da2ddb9b560bb4fbc9758668 | |
parent | Script renames (diff) | |
download | joe-scripts-9746c9b3f29c9017d73891f81e1e3bbce988e421.tar.gz joe-scripts-9746c9b3f29c9017d73891f81e1e3bbce988e421.tar.bz2 joe-scripts-9746c9b3f29c9017d73891f81e1e3bbce988e421.tar.xz joe-scripts-9746c9b3f29c9017d73891f81e1e3bbce988e421.tar.zst joe-scripts-9746c9b3f29c9017d73891f81e1e3bbce988e421.zip |
README update
-rw-r--r-- | README.org | 11 | ||||
-rwxr-xr-x | src/vps-do.pl | 7 |
2 files changed, 10 insertions, 8 deletions
@@ -25,12 +25,13 @@ The source tree is the following: │ └── rmuser.pl ├── other │ └── git-ro-daemon.pl - └── update - ├── gitjoe.pl - └── serv.pl + ├── update + │ ├── gitjoe.pl + │ └── vps.pl + └── vps-do.pl #+END_SRC - ~gitjoe/~ scripts are meant to be run on the server directly. They are tools to add GitJoe users, repos, change descritpion, etc. -- ~distant/~ scripts are meant to be run on your home machine. They simply connect via ~ssh~ to your distant server and run the according script so it even skips the ~ssh~ phase. - ~update/~ scripts are run via cron jobs. They update the GitJoe repositories front-end website via ~stagit~ and pull ~master~ branches of the websites via ~git~. -- ~other/~ script is just a single line the start the ~git daemon~ to serve public repositories. +# - ~other/~ script is just a single line the start the ~git daemon~ to serve public repositories. +- The ~vps-do.pl~ script allows you to execute one of the distant scripts on your home terminal, opening and closing the ~ssh~ session for you. diff --git a/src/vps-do.pl b/src/vps-do.pl index b88720c..3c165c1 100755 --- a/src/vps-do.pl +++ b/src/vps-do.pl @@ -15,6 +15,7 @@ sub main { my $scripts_dir = '/root/scripts/src/'; my $called_script = ''; my $word = ''; + my $ssh_boy = 'root@jozanleclerc.xyz'; if ( $ARGV[0] eq 'addsshkey' || $ARGV[0] eq 'chdesc' || @@ -28,7 +29,7 @@ sub main { } elsif ( $ARGV[0] eq "update-gitjoe" || - $ARGV[0] eq "update-serv" + $ARGV[0] eq "update-vps" ) { $word = $ARGV[0]; $word =~ s/update-//; @@ -46,10 +47,10 @@ sub main { . colored("rmrepo\n", 'bold green') . colored("rmuser\n", 'bold green') . colored("update-gitjoe\n", 'bold green') - . colored("update-serv\n", 'bold green'); + . colored("update-vps\n", 'bold green'); exit 2; } - print "Calling " . colored($called_script, 'bold green') . "...\n"; + print "Calling " . colored($called_script, 'bold green') . " via " . colored($ssh_boy, 'bold') . "...\n"; exit; } |