initial import
This commit is contained in:
12
git-legacy/git-legacy.install
Normal file
12
git-legacy/git-legacy.install
Normal file
@@ -0,0 +1,12 @@
|
||||
post_install() {
|
||||
if ! getent group git >/dev/null; then
|
||||
groupadd --system git
|
||||
fi
|
||||
if ! getent passwd git >/dev/null; then
|
||||
useradd --system -c 'git daemon user' -g git -d / -s /bin/bash git
|
||||
fi
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install $1
|
||||
}
|
||||
Reference in New Issue
Block a user