2024-02-15 15:21:37 +00:00
|
|
|
install:
|
2024-02-15 17:02:22 +00:00
|
|
|
sudo apt-get update && sudo apt install python3-venv -y
|
2024-02-15 22:54:56 +00:00
|
|
|
sudo mkdir /etc/remindme_caldav /etc/remindme_caldav
|
2024-02-15 17:02:22 +00:00
|
|
|
python3 -m venv /opt/remindme_caldav/.venv
|
|
|
|
cp remindme_caldav.py alert_processor.py /opt/remindme_caldav/
|
|
|
|
. /opt/remindme_caldav/.venv/bin/activate && pip3 install -r requirements.txt
|
2024-02-15 15:39:55 +00:00
|
|
|
sudo cp remindme_caldav.service /etc/systemd/system/
|
2024-02-15 19:56:40 +00:00
|
|
|
sudo cp config.toml /etc/remindme_caldav/config.toml
|
2024-02-15 15:39:55 +00:00
|
|
|
sudo systemctl daemon-reload
|
|
|
|
sudo systemctl enable remindme_caldav.service
|
|
|
|
sudo systemctl start remindme_caldav.service
|
2024-02-15 15:21:37 +00:00
|
|
|
|
|
|
|
uninstall:
|
2024-02-15 15:39:55 +00:00
|
|
|
sudo systemctl stop remindme_caldav.service
|
|
|
|
sudo systemctl disable remindme_caldav.service
|
|
|
|
rm -rf /opt/remindme_caldav
|
2024-02-15 20:03:59 +00:00
|
|
|
rm -rf /etc/remindme_caldav
|
2024-02-15 15:39:55 +00:00
|
|
|
rm /etc/systemd/system/remindme_caldav.service
|
2024-02-15 15:21:37 +00:00
|
|
|
|
|
|
|
clean:
|
2024-02-15 15:39:55 +00:00
|
|
|
deactivate
|