From 377bb980039e30195b59f4986f75eb4b98ef4be8 Mon Sep 17 00:00:00 2001 From: Kevin Chen Date: Tue, 2 Jan 2018 22:23:26 -0800 Subject: [PATCH] Change username to defaultuser. --- cloud-init-algo-vpn.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cloud-init-algo-vpn.sh b/cloud-init-algo-vpn.sh index 00c1218..7c5da86 100644 --- a/cloud-init-algo-vpn.sh +++ b/cloud-init-algo-vpn.sh @@ -55,12 +55,12 @@ pip install -r requirements.txt # Update the configuration file mv config.cfg config_old.cfg -# This awk script replaces any existing users with "Kevin" +# This awk script replaces any existing users with "defaultuser" set +e read -d '' awk_filter_users <<"EOF" !NF {f = 0} f == 2 {$0 = ""} -f == 1 {$0 = " - kevin"; f = 2} +f == 1 {$0 = " - defaultuser"; f = 2} /users:/ {f = 1} 1 EOF