aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-07-08 17:25:19 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-07-08 17:25:19 +0200
commit9746c9b3f29c9017d73891f81e1e3bbce988e421 (patch)
treec030373104902c94da2ddb9b560bb4fbc9758668 /src
parentScript renames (diff)
downloadjoe-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
Diffstat (limited to 'src')
-rwxr-xr-xsrc/vps-do.pl7
1 files changed, 4 insertions, 3 deletions
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;
}