diff options
author | Sebastian 'gonX' Jensen | 2022-03-03 06:17:48 +0100 |
---|---|---|
committer | Sebastian 'gonX' Jensen | 2022-03-03 06:19:46 +0100 |
commit | 2da4d18c4fc0a38ffa4e5a89bc08c901367e9739 (patch) | |
tree | 22a5a26b9f5e8c1b5e7aece5aec0dae215bec826 /notes.install | |
parent | 35df25a1b2053faaa557a65d39c067b27e0b600f (diff) | |
download | aur-2da4d18c4fc0a38ffa4e5a89bc08c901367e9739.tar.gz |
Fix notes.install post_upgrade logic
Aside from fixing the <0.6.0 detection logic, we now also ask the user to restart the daemon
Diffstat (limited to 'notes.install')
-rw-r--r-- | notes.install | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/notes.install b/notes.install index 44e6d45b7b04..9254262f4e6f 100644 --- a/notes.install +++ b/notes.install @@ -43,11 +43,12 @@ post_install() { } post_upgrade() { - if [ $(vercmp $2 'v0.6.0-1') -lt 0 ]; then - return 0 - fi - echo -e "${BOLD}The plugin API and tablet configuration format has changed in OpenTabletDriver 0.6${RESET}" - echo -e "You may want to clear the contents of the ${GREEN}Plugins/${RESET} and ${GREEN}Configurations/${RESET} folder in ${GREEN}~/.config/OpenTabletDriver/${RESET}" - echo "Mismatching GUI and daemon versions isn't supported, so make sure to restart the OpenTabletDriver daemon" + echo -e "${BOLD}Mismatching OpenTabletDriver versions between GUI and daemon isn't supported${RESET}" + echo -e "Restart your daemon with ${GREEN}systemctl --user restart opentabletdriver${RESET}" echo + if [ $(vercmp $2 0.6.0-1) -lt 0 ]; then + echo -e "${BOLD}The plugin API and tablet configuration format has changed in OpenTabletDriver 0.6${RESET}" + echo -e "You may want to clear the contents of the ${GREEN}Plugins/${RESET} and ${GREEN}Configurations/${RESET} folder in ${GREEN}~/.config/OpenTabletDriver/${RESET}" + echo + fi } |