Project

General

Profile

Make remote scripts available after Tigase startup

Igor Khomenko
Added almost 4 years ago

It's possible to add a remote script with TCLMT

bin/tclmt.sh -u admin@chat.tigase.com -p adminpass add-script muc room-remove "Room Remove" groovy "scripts/RoomRemove.groovy"

and then call it

Run remote script:

bin/tclmt.sh -u admin@chat.tigase.com -p adminpass remote muc room-remove "myroomjid1@muc.chat.tigase.com"

Is it possible to make this script available after Tigase startup?

I don't want to add it each time


Replies (3)

Added by Wojciech Kapcia TigaseTeam almost 4 years ago

Hm, this script simply executes "Add new command" on the server, which has option to save scripts to disk (thus making it available after restart) and it's enabled by default (v. im src/main/groovy/tigase/AddScript.groovy). Please make sure there is no problem with saving scripts to disk on the server (i.e permissions, etc).

(1)

Added by Igor Khomenko almost 4 years ago

Thanks

I found another way: to place a script on Tigase/scripts/admin/muc/ folder. After that this script becomes available after restart

(1)
Avatar?id=6023&size=32x32

Added by Artur Hefczyc TigaseTeam almost 4 years ago

Yes, indeed but this require the server restart. Wojciech suggestion allows you to add new scripts at runtime and they are active without restarting the server.

    (1-3/3)