blob: aadf3583fdb6cf41368a49ff72ba2d803fb106fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
post_install() {
cat <<'EOF'
IDrive for Linux is installed to /opt/IDriveForLinux.
Run `idrive` and choose "Configure/Reconfigure your account" to set up your
account, backup sets, and schedule. idrive stores its state under /opt and
schedules root cron jobs, so it runs as root (the `idrive` command escalates
via sudo automatically).
EOF
}
post_upgrade() {
post_install
}
pre_remove() {
# Best-effort: stop a scheduled-backup systemd unit if the app installed one.
systemctl disable --now idrivecron.service idrivecron.timer 2>/dev/null || true
}
post_remove() {
cat <<'EOF'
idrive-bin removed. Account configuration, logs, and any backup schedule it
created at first run are NOT removed automatically. To fully purge:
sudo rm -rf /opt/IDriveForLinux
sudo crontab -l # check for and remove any idrive cron entries
EOF
}
|