diff --git a/jk_web/merge_modules.py b/jk_web/merge_modules.py
index d633e4377f3e3c3f273aa66bfbdac93d50caee6b..b82fbcbcfbe6d99fdefcc746c6fbeb57c4163d44 100755
--- a/jk_web/merge_modules.py
+++ b/jk_web/merge_modules.py
@@ -56,6 +56,8 @@ def merge(do_commit):
                     else:
                         with open(web_dir+path+fname, "wb") as f:
                             f.write(data)
+                        if os.access(module_dir+path+fname, os.X_OK):
+                            os.chmod(web_dir+path+fname, 0o755)
 
     for m in modules:
         go(m, '/')