diff options
Diffstat (limited to 'modules/buildsystem/templates')
-rwxr-xr-x | modules/buildsystem/templates/mgacreatehome | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/modules/buildsystem/templates/mgacreatehome b/modules/buildsystem/templates/mgacreatehome deleted file mode 100755 index 3c0fc140..00000000 --- a/modules/buildsystem/templates/mgacreatehome +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/sh - -# script to create home directory with ssh key -# takes two arguments : -# - login -# - URL for ssh key - -test $# -eq 2 || exit 1 -login="$1" -sshkeyurl="$2" -sshkeyfile=`mktemp` -homeroot='/home' - -id "$login" || exit 2 -wget -O "$sshkeyfile" "$sshkeyurl" || exit 2 -cat "$sshkeyfile" -echo "Press enter to validate" -read z - -test ! -d "$homeroot/$login" && cp -a /etc/skel "$homeroot/$login" -mkdir "$homeroot/$login/.ssh" -cat "$sshkeyfile" >> "$homeroot/$login/.ssh/authorized_keys" -rm -f "$sshkeyfile" -chmod 700 "$homeroot/$login/.ssh" -chmod 600 "$homeroot/$login/.ssh/authorized_keys" -chown -R "$login":mga-users "$homeroot/$login" - |