summaryrefslogtreecommitdiff
path: root/tools/cloud-init/GCE
diff options
context:
space:
mode:
authorUnicronNL <kim.sidney@gmail.com>2019-05-21 22:15:55 +0200
committerUnicronNL <kim.sidney@gmail.com>2019-05-21 22:15:55 +0200
commitd8ee537f1528dfe3e37ad1afe2b9dd3dab81cbd0 (patch)
tree1f4d3d262d72e0bbb74d221e6220a23b9ba403ea /tools/cloud-init/GCE
parent217aa6afaebc021700cb6a4984f35720995f7ec5 (diff)
downloadvyos-build-d8ee537f1528dfe3e37ad1afe2b9dd3dab81cbd0.tar.gz
vyos-build-d8ee537f1528dfe3e37ad1afe2b9dd3dab81cbd0.zip
update cloud builds
Diffstat (limited to 'tools/cloud-init/GCE')
-rwxr-xr-xtools/cloud-init/GCE/99-debug-user.chroot17
1 files changed, 0 insertions, 17 deletions
diff --git a/tools/cloud-init/GCE/99-debug-user.chroot b/tools/cloud-init/GCE/99-debug-user.chroot
deleted file mode 100755
index 7b72f898..00000000
--- a/tools/cloud-init/GCE/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")' dKD3UKamS3MQ)
- 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