mirror of
https://github.com/TechnitiumSoftware/DnsServer.git
synced 2026-10-12 02:09:51 +00:00
Fix: Set umask 0022 during installation for proper file permissions (#2165)
* Fix: Set umask 0022 during installation for proper file permissions On restricted environments, the install.sh executes successfully but sets up files with restrictive permissions, causing the DNS service to fail with "Permission denied" errors. This fix temporarily sets the umask to 0022 during installation and restores the original umask on exit. Tested and working. * Remove unnecessary umask reversion
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
umask 0022
|
||||
|
||||
dotnetDir="/opt/dotnet"
|
||||
dotnetVersion="10.0"
|
||||
dotnetRuntime="Microsoft.AspNetCore.App 10.0."
|
||||
|
||||
Reference in New Issue
Block a user