15.06.2021, 17:24
(This post was last modified: 15.06.2021, 17:25 by sebastian.strasser.)
I am changing the script itself.
I want to upload a script with ftp and the lm have to import it. I have 52 SL to update the script automatic everytime i update my masterscript.
It works but only with restart. I think there must be a better option.
The script to edit is a resident
My Import script is actual:
I want to upload a script with ftp and the lm have to import it. I have 52 SL to update the script automatic everytime i update my masterscript.
It works but only with restart. I think there must be a better option.
The script to edit is a resident
My Import script is actual:
Code:
file = '/home/ftp/importscripts/script.lua'
if io.exists(file) then
log('start scriptimport')
data = io.readfile(file)
db:query('UPDATE scripting SET script=? WHERE name=?', data, 'imported_from_ftp')
os.remove (file)
os.execute("reboot")
end