diff options
| author | 2022-03-13 13:29:46 +0530 | |
|---|---|---|
| committer | 2022-03-13 13:29:46 +0530 | |
| commit | af6e201bef4a3e0c42cdb8fd83ceb01b761c4cff (patch) | |
| tree | b97b743297ab0ca7b4a38dcfe141145a9e7703c3 /install-systemd.bash | |
| parent | 87be443f78cdbf9eb026aa2a223ed1f768856af4 (diff) | |
| download | shopno-os-log-sync-af6e201bef4a3e0c42cdb8fd83ceb01b761c4cff.tar.gz shopno-os-log-sync-af6e201bef4a3e0c42cdb8fd83ceb01b761c4cff.zip | |
fixing issues in install-systemd.bash
Diffstat (limited to '')
| -rw-r--r-- | install-systemd.bash | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/install-systemd.bash b/install-systemd.bash new file mode 100644 index 0000000..546dba3 --- /dev/null +++ b/install-systemd.bash @@ -0,0 +1,18 @@ +#!/bin/bash + +sudo cp -r ./src/Watcher /usr/share/ +mkdir -p ~/.local/bin/ +cp -r ./src/bin/watcher ~/.local/bin/ +sudo chmod +x ~/.local/bin/watcher + +# enabling systemd service +mkdir -p ~/.config/systemd/ +mkdir -p ~/.config/systemd/user/ +cp -r ./src/service/watcher.service ~/.config/systemd/user/ +systemctl --user enable --now watcher.service + +# making directory for log-files (where all you daily logs are stored) +mkdir -p ~/.cache/Watcher/ +mkdir -p ~/.cache/Watcher/raw_data/ +mkdir -p ~/.cache/Watcher/Analysis/ + |
