aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Waishnav <waishnavdeore@gmail.com>2022-03-16 23:57:13 +0530
committerLibravatar Waishnav <waishnavdeore@gmail.com>2022-03-16 23:57:13 +0530
commit5f2f81de0a02b81a83b70edfac0ec67672a81047 (patch)
treee6e32acc9bf64b19b4f334a32f1623b7baf7739f
parent756885cef50dd3dbec96e89e1c928f0970441659 (diff)
downloadshopno-os-log-sync-5f2f81de0a02b81a83b70edfac0ec67672a81047.tar.gz
shopno-os-log-sync-5f2f81de0a02b81a83b70edfac0ec67672a81047.zip
resolving conflict in install file for those who still using systemd service
-rwxr-xr-xinstall7
1 files changed, 7 insertions, 0 deletions
diff --git a/install b/install
index 1e852a2..1ea78fc 100755
--- a/install
+++ b/install
@@ -17,6 +17,13 @@ mkdir -p ~/.cache/Watcher/
mkdir -p ~/.cache/Watcher/raw_data/
mkdir -p ~/.cache/Watcher/Analysis/
+# resolving confilict with previous version of watcher
+if [ -f "$HOME/.config/systemd/user/watcher.service" ]; then
+ systemctl --user disable --now watcher.service
+ rm -rf $HOME/.config/systemd/user/watcher.service
+elif [ -f "$HOME/.local/bin/watcher" ]; then
+ rm -rf $HOME/.local/bin/watcher
+
# checking wherther is ~/.xprofile is sourced in ~/.xintrc or not
count1=$(grep -c "xprofile" $HOME/.xinitrc)
# checking whether user have used watcher before as well as xprofile filed setup or not