Browse Source

Move lapis.sh to lua.sh

Hamilton Turner 11 years ago
parent
commit
959b4887f7
2 changed files with 11 additions and 1 deletions
  1. 3 1
      frameworks/Lua/lapis/install.sh
  2. 8 0
      toolset/setup/linux/languages/lua.sh

+ 3 - 1
frameworks/Lua/lapis/install.sh

@@ -1,3 +1,5 @@
 #!/bin/bash
 #!/bin/bash
 
 
-fw_depends lapis nginx openresty
+fw_depends lua nginx openresty
+
+sudo luarocks install https://raw.githubusercontent.com/leafo/lapis/master/lapis-dev-1.rockspec

+ 8 - 0
toolset/setup/linux/languages/lua.sh

@@ -0,0 +1,8 @@
+#!/bin/bash
+
+RETCODE=$(fw_exists lua.installed)
+[ ! "$RETCODE" == 0 ] || { return 0; }
+
+sudo apt-get install -y lua5.1 lua5.2 luajit luarocks
+
+touch lua.installed