-
Notifications
You must be signed in to change notification settings - Fork 76
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
bc88a1c
commit 8aee296
Showing
4 changed files
with
28 additions
and
33 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
44 changes: 22 additions & 22 deletions
44
Installers/FixPermissions.bat → Installer/FixPermissions.bat
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,22 +1,22 @@ | ||
@echo off | ||
title Setting Shoko Server Permissions | ||
|
||
if exist "%ProgramData%\ShokoServer" ( | ||
echo Shoko Server folder found, no need to set permissions. | ||
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/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) | ||
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 | ||
@echo off | ||
title Setting Shoko Server Permissions | ||
|
||
if exist "%ProgramData%\ShokoServer" ( | ||
echo Shoko Server folder found, no need to set permissions. | ||
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/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) | ||
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 |
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
File renamed without changes.