runfalk / synology-wireguard

WireGuard support for some Synology NAS drives
MIT License
945 stars 132 forks source link

WG20190702 SPK fails to install on DS218Play #27

Open iamnague opened 5 years ago

iamnague commented 5 years ago

From my point of view, it's related to postinst script, the bin path is not correct: /usr/local/bin instead of /usr/bin

Workaround: create a symbolic link for /usr/local/bin

rulistaff commented 4 years ago

The same for me with DS718+ symlink does the trick 👍

Edit: I had to manually uninstall package via ssh because first install was broken because of this problem, and it was not possible to uninstall/reinstall with DSM.

tinco commented 4 years ago

Same here on the DS1819+, I installed wireguard, it said it failed, then I tried uninstalling, that failed as well. I didn't want to be stuck so I checked the logs, and the preuninst script had failed, so I read that in the repo and all it did was rm'ing those two files. Checked why that would fail, turns out /usr/local/bin didn't exist, so I simply made it. After that the uninstall went fine, and then I tried installing again and that went fine as well. So maybe instead of creating that symbolink link, you could just put a mkdir -p /usr/local/bin in the preinst script? I'm not much of a linux sysadmin so I don't know if that would have any other repercussions..

runfalk commented 4 years ago

Hm, I should probably just make it use /usr/bin instead and avoid issues.