aboutsummaryrefslogtreecommitdiffstats
path: root/src/gitjoe/rmuser.pl
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-07-26 15:24:44 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-07-26 15:24:44 +0200
commitcf96dfe155e4c8b2f04068efee96178e4f0a59cf (patch)
tree476c78a7fbc8475e9db5b27edc3127beb4667019 /src/gitjoe/rmuser.pl
parentTrying with random passwords (diff)
downloadjoe-scripts-cf96dfe155e4c8b2f04068efee96178e4f0a59cf.tar.gz
joe-scripts-cf96dfe155e4c8b2f04068efee96178e4f0a59cf.tar.bz2
joe-scripts-cf96dfe155e4c8b2f04068efee96178e4f0a59cf.tar.xz
joe-scripts-cf96dfe155e4c8b2f04068efee96178e4f0a59cf.tar.zst
joe-scripts-cf96dfe155e4c8b2f04068efee96178e4f0a59cf.zip
Cleaner
Diffstat (limited to 'src/gitjoe/rmuser.pl')
-rwxr-xr-xsrc/gitjoe/rmuser.pl8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gitjoe/rmuser.pl b/src/gitjoe/rmuser.pl
index d9b056d..2840c65 100755
--- a/src/gitjoe/rmuser.pl
+++ b/src/gitjoe/rmuser.pl
@@ -3,6 +3,10 @@
use strict;
use warnings;
use Term::ANSIColor;
+use constant {
+ DASH_PATH => '/usr/local/bin/dash',
+ RMUSER_PATH => '/usr/sbin/rmuser',
+};
sub main {
my $argc = $#ARGV + 1;
@@ -15,9 +19,9 @@ sub main {
}
my $usr = $ARGV[0];
system(
- '/usr/local/bin/dash',
+ DASH_PATH,
'-c',
- "rmuser << EOF
+ RMUSER_PATH . " << EOF
" . $usr . "
y
y