summaryrefslogtreecommitdiff
path: root/tools/cloud-init/99-debug-user.chroot
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-07-10 11:51:04 +0200
committerGitHub <noreply@github.com>2021-07-10 11:51:04 +0200
commitd6eedb6e1b6427e548c6726a1703824918be24ba (patch)
tree427f3c2b0327295f526aebf7df375201b0ed346f /tools/cloud-init/99-debug-user.chroot
parent0ba721e3f1c60be9fbb03b3c6e9867d795f5cfca (diff)
parent7afee1ae93a9055bb7af168d731ab8666f81ca93 (diff)
downloadvyos-build-d6eedb6e1b6427e548c6726a1703824918be24ba.tar.gz
vyos-build-d6eedb6e1b6427e548c6726a1703824918be24ba.zip
Merge pull request #175 from UnicronNL/current
T3664: Eliminate obsolete build flavours
Diffstat (limited to 'tools/cloud-init/99-debug-user.chroot')
-rwxr-xr-xtools/cloud-init/99-debug-user.chroot17
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