-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use file checks to determine rm-sync vs sync
- Loading branch information
Showing
1 changed file
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,12 +67,12 @@ configure() { | |
|
||
# sync.service interferes with launchers | ||
# we use manual-sync.service instead | ||
if ! is-masked sync.service; then | ||
systemctl mask sync.service 2> /dev/null | ||
if [ -f /usr/bin/sync ] && ! is-masked sync.service; then | ||
systemctl mask sync.service | ||
fi | ||
|
||
if ! is-masked rm-sync.service; then | ||
systemctl mask rm-sync.service 2> /dev/null | ||
if [ -f /usr/bin/rm-sync ] && ! is-masked rm-sync.service; then | ||
systemctl mask rm-sync.service | ||
fi | ||
|
||
if [ -f /usr/bin/rm-sync ] && ! is-active [email protected]; then | ||
|
@@ -102,11 +102,11 @@ preremove() { | |
postremove() { | ||
systemctl daemon-reload | ||
|
||
if is-masked sync.service; then | ||
systemctl unmask sync.service 2> /dev/null | ||
if [ -f /usr/bin/sync ] && is-masked sync.service; then | ||
systemctl unmask sync.service | ||
fi | ||
if is-masked rm-sync.service; then | ||
systemctl unmask rm-sync.service 2> /dev/null | ||
if [ -f /usr/bin/rm-sync ] && is-masked rm-sync.service; then | ||
systemctl unmask rm-sync.service | ||
fi | ||
|
||
if is-enabled xochitl.service && is-enabled launcher.service; then | ||
|