summaryrefslogtreecommitdiff
path: root/src/helpers
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-01-10 11:21:13 +0100
committerGitHub <noreply@github.com>2024-01-10 11:21:13 +0100
commit7a03e2b0ab1d66b9f73b02c5333bff38fb35e258 (patch)
treeac710f5ee08eb5f05be8561feb51c86547d37d44 /src/helpers
parenta9ed12de93425a9e9637a61e5b7f17ae01575242 (diff)
parent1f236a3ca73164a6f861a99113bf844ec9b99b06 (diff)
downloadvyos-1x-7a03e2b0ab1d66b9f73b02c5333bff38fb35e258.tar.gz
vyos-1x-7a03e2b0ab1d66b9f73b02c5333bff38fb35e258.zip
Merge pull request #2781 from vyos/mergify/bp/sagitta/pr-2773
https: T5902: remove virtual-host configuration (backport #2773)
Diffstat (limited to 'src/helpers')
-rwxr-xr-xsrc/helpers/vyos-boot-config-loader.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/helpers/vyos-boot-config-loader.py b/src/helpers/vyos-boot-config-loader.py
index 01b06526d..42de696ce 100755
--- a/src/helpers/vyos-boot-config-loader.py
+++ b/src/helpers/vyos-boot-config-loader.py
@@ -102,7 +102,8 @@ def failsafe(config_file_name):
'authentication',
'encrypted-password'])
- cmd(f"useradd -s /bin/bash -G 'users,sudo' -m -N -p '{passwd}' vyos")
+ cmd(f"useradd --create-home --no-user-group --shell /bin/vbash --password '{passwd}' "\
+ "--groups frr,frrvty,vyattacfg,sudo,adm,dip,disk vyos")
if __name__ == '__main__':
if len(sys.argv) < 2: