Customizing SMF > SMF Coding Discussion
CHMODing files from package
(1/1)
monitorjbl:
I've built a package to store my mod and everything works great. However, two of the files are CHMODed 755 instead of 644 when they come out. My Apache will throw a 500 error until I go in and fix their permissions. Is there a way to make the package do this automatically, or maybe to make the forum appropriately CHMOD things?
JBlaze:
Admin -> Main -> Package Manager -> File Permissions
If that fails, you will need to do it via an FTP program such as Filezilla.
Shambles:
I'm also quite interested in this possibility; to see how the package manager can execute server side commands.
--- Quote from: JBlaze on August 22, 2012, 04:00:25 AM ---Admin -> Main -> Package Manager -> File Permissions
--- End quote ---
How does that work during the package installation activity?
MrPhil:
What files are 755? Are they executables with a "shebang" line, or normal files? Are you sure they are 644 before you create the package, and get changed to 755 somehow in packaging? Perhaps the packager is looking for certain file names or extensions to mark executable, and it shouldn't be (or the files shouldn't be named what they are)? I'm surprised that a server would choke on merely marking a file executable (755 instead of 644), but I suppose it's possible. But anyway, what files are doing this?
monitorjbl:
It's just a couple of files that I'm putting in the $boarddir. And they probably are 755 to Linux, I zipped them up on a Windows box. I was just hoping that the package might be able to run a server-side script to make this easier, and possibly provide some useful functionality down the line.
Navigation
[0] Message Index
Go to full version