diff options
author | Kim Hagen <kim@sentrium.io> | 2021-07-07 05:03:38 -0500 |
---|---|---|
committer | Kim Hagen <kim@sentrium.io> | 2021-07-07 05:03:38 -0500 |
commit | 43f4d5c3cd8838ae87660813abc999f85612a33f (patch) | |
tree | 1a42bdda4732b2f949800b53c7b3466bc113dbcb /tools/cloud-init/99-debug-user.chroot | |
parent | 745a348bd155dd5778cdda177f6a463e9f86ae54 (diff) | |
download | vyos-build-43f4d5c3cd8838ae87660813abc999f85612a33f.tar.gz vyos-build-43f4d5c3cd8838ae87660813abc999f85612a33f.zip |
T3664: Eliminate obsolete build flavours
Diffstat (limited to 'tools/cloud-init/99-debug-user.chroot')
-rwxr-xr-x | tools/cloud-init/99-debug-user.chroot | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/tools/cloud-init/99-debug-user.chroot b/tools/cloud-init/99-debug-user.chroot deleted file mode 100755 index 354b46ab..00000000 --- a/tools/cloud-init/99-debug-user.chroot +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash -# Script to add a user to Linux system -if [ $(id -u) -eq 0 ]; then - egrep "^debuguser" /etc/passwd >/dev/null - if [ $? -eq 0 ]; then - echo "$username exists!" - exit 1 - else - pass=$(perl -e 'print crypt($ARGV[0], "password")' debuguser) - useradd -m -p $pass debuguser - usermod -aG sudo debuguser - [ $? -eq 0 ] && echo "User has been added to system!" || echo "Failed to add a user!" - fi -else - echo "Only root may add a user to the system" - exit 2 -fi |