summaryrefslogtreecommitdiff
path: root/src/init
diff options
context:
space:
mode:
authorGravatar Matthias Lucas Jaros <jarlucmat@mailbox.org>2025-10-27 10:27:47 +0100
committerGravatar Matthias Lucas Jaros <jarlucmat@mailbox.org>2025-10-27 10:27:47 +0100
commitf89d943fc55e7d9bf4fd197fa0e2cb6500952ce4 (patch)
treefd2d6c9a56eb8695d4be34b434a4dd35bac1abd4 /src/init
parenta3696ceb9b8158d6ea2fe41d5d27f415e219e887 (diff)
Added banner and renamed run script to git-run
Diffstat (limited to 'src/init')
-rwxr-xr-xsrc/init5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/init b/src/init
index 394335a..3686332 100755
--- a/src/init
+++ b/src/init
@@ -2,6 +2,7 @@
# load environment
source (dirname (status --current-filename))/env
+set VERSION (cat (dirname (status --current-filename))/version)
#
#
@@ -34,7 +35,7 @@ function createUser
# add user to sudo group
addgroup "$user" $_GIT_SUDO_GROUP
# unlock account to allow ssh logins
- passwd -u "$user"
+ passwd -u "$user" &>/dev/null
mkdir "$HOME/.ssh"
echo "$key" > "$HOME/.ssh/authorized_keys"
chown -R $user "$HOME"
@@ -124,7 +125,7 @@ function showBanner
|___/
'
echo
- echo Copyright Matthias Jaros 2025
+ echo Version $VERSION Copyright Matthias Jaros 2025
echo
end