From 4ea69af53b5dc552066002080e546655c6aca00d Mon Sep 17 00:00:00 2001 From: Thijs Schreijer Date: Thu, 9 Dec 2021 10:53:58 +0100 Subject: [PATCH] fix(customize) sets permissions in line with Kong install --- customize/packer.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/customize/packer.lua b/customize/packer.lua index 2a4c3de9..d37be3bf 100644 --- a/customize/packer.lua +++ b/customize/packer.lua @@ -423,6 +423,14 @@ fi %s %s +# set ownership to kong user/group +find /usr/local/share/lua/5.1/ -type f -exec chown 1000:1000 "{}" + +find /usr/local/share/lua/5.1/ -type d -exec chown 1000:1000 "{}" + +find /usr/local/lib/lua/5.1/ -type f -exec chown 1000:1000 "{}" + +find /usr/local/lib/lua/5.1/ -type d -exec chown 1000:1000 "{}" + +find /usr/local/lib/luarocks/rocks-5.1/ -type f -exec chown 1000:1000 "{}" + +find /usr/local/lib/luarocks/rocks-5.1/ -type d -exec chown 1000:1000 "{}" + + # clean up by deleting all the temporary stuff rm -rf /plugins ]=]