Skip to content

Commit

Permalink
Update FixPermissions.bat.
Browse files Browse the repository at this point in the history
  • Loading branch information
ElementalCrisis committed Jun 22, 2018
1 parent 8bcbaa2 commit c34eadf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Installers/FixPermissions.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ 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)
Expand All @@ -12,8 +13,10 @@ if exist "%ProgramData%\ShokoServer" (
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

0 comments on commit c34eadf

Please sign in to comment.