aboutsummaryrefslogtreecommitdiffstats
path: root/arch-system/base-system.install
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2019-05-31 05:21:53 +0200
committerTharre <tharre3@gmail.com>2019-06-30 04:11:56 +0200
commit687315205e2251432566e5d438d57a513760ec54 (patch)
treecc2c9355342118266587458c77feab2d8e2b2774 /arch-system/base-system.install
parentfc5ec7fecddb52899d4e06edd9d4cabbf17a20d9 (diff)
downloadpkgbuilds-687315205e2251432566e5d438d57a513760ec54.tar.gz
pkgbuilds-687315205e2251432566e5d438d57a513760ec54.tar.xz
pkgbuilds-687315205e2251432566e5d438d57a513760ec54.zip
arch-system: fix .install and run it
Before, base-system.install wasn't actually run, since it wasn't specified in `install=` in the PKGBUILD anywhere. Also run it both in the post-upgrade and post-install steps. `--global` was removed since it caused errors, it's unclear what exactly it does in the first place, but other official PKGBUILDs did it this way..
Diffstat (limited to 'arch-system/base-system.install')
-rw-r--r--arch-system/base-system.install10
1 files changed, 7 insertions, 3 deletions
diff --git a/arch-system/base-system.install b/arch-system/base-system.install
index b428aac..371f832 100644
--- a/arch-system/base-system.install
+++ b/arch-system/base-system.install
@@ -1,10 +1,14 @@
-post_install() {
+post_upgrade() {
# in case it wasn't already run by glibc
locale-gen
- systemctl --global enable avahi-daemon.service
+ systemctl enable --now avahi-daemon.service
+}
+
+post_install() {
+ post_upgrade
}
pre_remove() {
- systemctl --global disable avahi-daemon.service
+ systemctl disable avahi-daemon.service
}