Override configuration in vsftp.lua

  • I don't know enough about LUA how to do this. I have done this succesfully for function LC.users.addUser but for function LC.vsftpd.configure(cfg, opts) I get this error in the log file:


    Code
    Can't run /usr/lib/liveconfig/lua/liveconfig.lua: /usr/lib/liveconfig/lua/custom.lua:78: attempt to index field 'vsftpd' (a nil value)
    stack traceback:
    	/usr/lib/liveconfig/lua/custom.lua:78: in main chunk
    	[C]: in function 'dofile'
    	/usr/lib/liveconfig/lua/liveconfig.lua:921: in main chunk


    I know it is has to do something with the fact that vsftpd.lua is loaded, not required:


    Code
    LC.ftp = require("ftp")
    LC.ftp.load("proftpd")
    LC.ftp.load("vsftpd")


    ... but I don't know how to solve this puzzle.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!