Skip to content

Commit

Permalink
Update Version.
Browse files Browse the repository at this point in the history
  • Loading branch information
ElementalCrisis committed Jul 22, 2019
1 parent 76e0aa8 commit ab5b58e
Show file tree
Hide file tree
Showing 3 changed files with 377 additions and 49 deletions.
26 changes: 6 additions & 20 deletions Installer/FixPermissions.bat
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)
Loading

0 comments on commit ab5b58e

Please sign in to comment.