diff --git a/makepanda/makepanda.py b/makepanda/makepanda.py index 65374b5738..b2e0f9d508 100755 --- a/makepanda/makepanda.py +++ b/makepanda/makepanda.py @@ -4662,8 +4662,8 @@ def MakeInstallerLinux(): WriteFile("linuxroot/DEBIAN/conffiles","/etc/Config.prc\n") WriteFile("linuxroot/DEBIAN/control",txt) WriteFile("linuxroot/DEBIAN/postinst","#!/bin/sh\necho running ldconfig\nldconfig\n") - oscmd("chmod 755 linuxroot/DEBIAN/postinst") oscmd("cp linuxroot/DEBIAN/postinst linuxroot/DEBIAN/postrm") + oscmd("chmod -R 755 linuxroot/DEBIAN") if (RUNTIME): oscmd("dpkg-deb -b linuxroot panda3d-runtime_"+VERSION+"_"+ARCH+".deb") else: