util/startup.lua
changeset 11148 2b9f7c537acb
parent 11143 2187643b8e20
child 11153 28add4b22a74
equal deleted inserted replaced
11147:818255f49297 11148:2b9f7c537acb
   267 	-- TODO Can probably move directory creation to the install command
   267 	-- TODO Can probably move directory creation to the install command
   268 	require "lfs".mkdir(installer_plugin_path);
   268 	require "lfs".mkdir(installer_plugin_path);
   269 	require"util.paths".complement_lua_path(installer_plugin_path);
   269 	require"util.paths".complement_lua_path(installer_plugin_path);
   270 	-- luacheck: ignore 111
   270 	-- luacheck: ignore 111
   271 	CFG_PLUGINDIR = installer_plugin_path..path_sep..(CFG_PLUGINDIR or "plugins");
   271 	CFG_PLUGINDIR = installer_plugin_path..path_sep..(CFG_PLUGINDIR or "plugins");
       
   272 	prosody.paths.installer = installer_plugin_path;
   272 	prosody.paths.plugins = CFG_PLUGINDIR;
   273 	prosody.paths.plugins = CFG_PLUGINDIR;
   273 end
   274 end
   274 
   275 
   275 function startup.chdir()
   276 function startup.chdir()
   276 	if prosody.installed then
   277 	if prosody.installed then