Feat: add systemd preset
All checks were successful
Build package / build-package (push) Successful in 10s
All checks were successful
Build package / build-package (push) Successful in 10s
This commit is contained in:
2
60-hl-ldap-env.preset
Normal file
2
60-hl-ldap-env.preset
Normal file
@@ -0,0 +1,2 @@
|
||||
enable sssd.service
|
||||
enable net-home.mount
|
||||
5
PKGBUILD
5
PKGBUILD
@@ -1,6 +1,6 @@
|
||||
# Maintainer: Yi-Ting Shih <ytshih@konchin.com>
|
||||
pkgname=hl-ldap-env
|
||||
pkgver=1.0.1
|
||||
pkgver=1.0.2
|
||||
pkgrel=1
|
||||
pkgdesc="LDAP and NFS environment for konchin.com homelab"
|
||||
arch=(any)
|
||||
@@ -21,6 +21,7 @@ source=(
|
||||
'pam-system-auth'
|
||||
'net-home.mount'
|
||||
'60-sssd.conf'
|
||||
"60-$pkgname.preset"
|
||||
"61-$pkgname.hook"
|
||||
'install.sh'
|
||||
)
|
||||
@@ -41,6 +42,7 @@ package() {
|
||||
install -Dm644 net-home.mount "$pkgdir/etc/systemd/system/net-home.mount"
|
||||
install -Dm750 -d "$pkgdir/etc/sssd" "$pkgdir/etc/sssd/conf.d"
|
||||
install -Dm640 60-sssd.conf "$pkgdir/etc/sssd/conf.d/60-sssd.conf"
|
||||
install -Dm644 "60-$pkgname.preset" "$pkgdir/etc/systemd/system-preset/60-$pkgname.preset"
|
||||
install -Dm644 "61-$pkgname.hook" "$pkgdir/etc/pacman.d/hooks/61-$pkgname.hook"
|
||||
install -Dm755 install.sh "$pkgdir/usr/lib/hl-ldap-env/install.sh"
|
||||
}
|
||||
@@ -50,5 +52,6 @@ sha256sums=('62c71fb39d4163e813b1fbbb7594d388d8de20476e69d0822ffd7c3d537b22a5'
|
||||
'6fba778754a1e73eb038481e1e436bbdaa81d7cf4ed26d6763c1f9d2a3122f3a'
|
||||
'1c4a92b809339137fd478c628e4753b849f26059761b1e20377e24c2fb06a555'
|
||||
'f239447e5107f6be09b709b5a33ad23b680bcaafe60162cea11a72e4fe20516d'
|
||||
'3724487a683b546485026de8bd5917cf4fbd779bc39930d86174e5a440f939b7'
|
||||
'769a91a0afdf666837bac9744088d7550ca74ebe94619abd369f420222fa8616'
|
||||
'3818c2f3b35b7715c25ce7348ff0dc22fad7bd1753a05c5e85561d551abdd021')
|
||||
|
||||
@@ -1,9 +1,15 @@
|
||||
post_install() {
|
||||
_changed() {
|
||||
echo 'Executing install.sh...'
|
||||
bash "$pkgdir/usr/lib/hl-ldap-env/install.sh"
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
echo 'Executing install.sh...'
|
||||
bash "$pkgdir/usr/lib/hl-ldap-env/install.sh"
|
||||
post_install() {
|
||||
_changed
|
||||
|
||||
systemctl preset sssd.service
|
||||
systemctl preset net-mount.service
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
_changed
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user