Userscripts not available
-
Hello,
We have only those two files under /var/lib/kopano/userscripts/
But i always see those files on forum posts or guides;
createuser_script = /usr/lib/kopano/userscripts/createuser
deleteuser_script = /usr/lib/kopano/userscripts/deleteuser
creategroup_script = /usr/lib/kopano/userscripts/creategroup
deletegroup_script = /usr/lib/kopano/userscripts/deletegroup
createcompany_script = /usr/lib/kopano/userscripts/createcompany
deletecompany_script = /usr/lib/kopano/userscripts/deletecompanyAre they removed or a packaging problem?
Thanks
Karif
-
@Karif said in Userscripts not available:
/var/lib/kopano/userscripts/
On Debian 10 this scripts are provided by kopano-server package.
# dpkg -S /usr/lib/kopano/userscripts/createuser kopano-server: /usr/lib/kopano/userscripts/createuser
-
also available here
https://stash.kopano.io/projects/KSC/repos/core-tools/browse -
Thank you for the answers.
Actually it was the first thing that i checked with dpkg -S but i had this result;
@WalterHof
root@mail:~# dpkg -S /usr/lib/kopano/userscripts/createuser dpkg-query: no path found matching pattern /usr/lib/kopano/userscripts/createuser
This is the installed package;
ii kopano-server 10.0.6.502.8b8baeb2a-0+297.1
Thank you
-
@Pax Unfortunately i couldnt find those files at this location.
Thanks
-
@Karif , the old package
kopano-server_10.0.1.100.6311aeb7e-0+296.1_amd64.deb
contains this scripts. No idea why a newer kopano-server package do not contain this scripts.
-
@WalterHof
Thank you, perhaps @fbartels shed a light to us ? :)
i checked all debian8,9,10 core packages but couldnt find it. It there is no need for this script anymore ?
Thanks
-
@Karif
In the official Debian repo packages, the scripts are located here:
/usr/lib/kopano/userscripts/createuser (and creategroup etc.)
You have to edit them and replace the last line in the script with this:
exec “/usr/lib/x86_64-linux-gnu/kopano/kscriptrun” /usr/lib/kopano/userscripts/createuser.d /etc/kopano/userscripts/createuser.d -
Thank you for suggestion. I am using Kopano repo not debian repo. I think it removed on purpose but couldnt find any changelog yet.
https://download.kopano.io/community/core%3A/core-10.0.6.502.c6456e8-Debian_10-amd64.tar.gz
Thanks
-
By default the kopano server is handeling the userscripts internally see https://jira.kopano.io/browse/KC-1800.
Therefore we removed those scripts completely but you can still create your own scripts if needed if you put the files in /usr/lib/kopano/userscripts/createuser.d/custom-script.shIf you really needs the scripts you can still get them from the 9.x branch https://stash.kopano.io/projects/KC/repos/kopanocore/browse/installer/userscripts?at=refs%2Fheads%2Fkc-9.x
-
Thank you for the answer, appreciated.
-Karif