summarylogtreecommitdiffstats
path: root/epson-printer-utility.install
diff options
context:
space:
mode:
authorUladzimir Panasiuk2019-02-22 14:11:34 +0300
committerUladzimir Panasiuk2019-02-22 14:11:34 +0300
commit9db2d25491f0d0f95f6ef4c310abc6b83d38a66d (patch)
tree336466283c75de35af532295730697622923839e /epson-printer-utility.install
parent4ae47db4346aa98953531eebb216b9c50a502646 (diff)
downloadaur-9db2d25491f0d0f95f6ef4c310abc6b83d38a66d.tar.gz
Desktop entry
Diffstat (limited to 'epson-printer-utility.install')
-rw-r--r--epson-printer-utility.install4
1 files changed, 2 insertions, 2 deletions
diff --git a/epson-printer-utility.install b/epson-printer-utility.install
index 6be45f253f46..dd3805cc1cf1 100644
--- a/epson-printer-utility.install
+++ b/epson-printer-utility.install
@@ -5,11 +5,11 @@ post_install() {
}
pre_remove() {
- [[ $(systemctl is-enabled $SERVICE) ]] && systemctl disable --now $SERVICE
+ [[ $(systemctl is-enabled $SERVICE 1>/dev/null) ]] && systemctl disable --now $SERVICE
}
post_upgrade() {
- if systemctl is-active $SERVICE; then
+ if systemctl is-active $SERVICE 1>/dev/null; then
systemctl daemon-reload
systemctl restart $SERVICE
fi