-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
76e0aa8
commit ab5b58e
Showing
3 changed files
with
377 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,7 @@ | ||
@echo off | ||
title Setting Shoko Server Permissions | ||
icacls "%ProgramData%\ShokoServer" /inheritance:r | ||
icacls "%ProgramData%\ShokoServer" /grant *S-1-1-0:(OI)(CI)F /T /inheritance:e | ||
|
||
if exist "%ProgramData%\ShokoServer" ( | ||
echo Shoko Server folder found, setting permissions | ||
icacls "%ProgramData%\ShokoServer" /inheritance:r | ||
icacls "%ProgramData%\ShokoServer" /grant *S-1-1-0:(OI)(CI)F /T /inheritance:e | ||
exit 0 | ||
) else ( | ||
netsh advfirewall firewall add rule name="Shoko Server Port" dir=in action=allow protocol=TCP localport=8111 | ||
netsh http add urlacl url=http://+:8111/ sddl=D:(A;;GA;;;S-1-1-0) | ||
mkdir "%ProgramData%\ShokoServer" | ||
icacls "%ProgramData%\ShokoServer" /inheritance:r | ||
icacls "%ProgramData%\ShokoServer" /grant *S-1-1-0:(OI)(CI)F /T /inheritance:e | ||
exit 0 | ||
) | ||
|
||
echo. | ||
echo. | ||
echo Shoko Server permissions correctly applied. | ||
exit 0 | ||
netsh http add urlacl url=http://+:8111/JMMServerPlex sddl=D:(A;;GA;;;S-1-1-0) | ||
netsh http add urlacl url=http://+:8111/JMMServerStreaming sddl=D:(A;;GA;;;S-1-1-0) | ||
netsh http add urlacl url=http://+:8111/JMMServerImage sddl=D:(A;;GA;;;S-1-1-0) | ||
netsh http add urlacl url=http://+:8111/ sddl=D:(A;;GA;;;S-1-1-0) |
Oops, something went wrong.