laurin1/composer-iis-permission-handler-windows-auth

Composer script handling iis permissions

v1.0.1 2014-07-11 21:13 UTC

This package is not auto-updated.

Last update: 2024-04-13 12:43:16 UTC


README

This tool allows you to run a basic script to fix IIS permissions on any directories you specify within the extra field of your composer.json. This fork was added for configurations that use Windows Authentication, which needs the Users group to have read permissions. Also, removed IIS start and stop.

Usage

Add the following in your root composer.json file

{
    "require": {
        "laurin1/composer-iis-permissions-handler": "1.0.*@dev"
    },
    "scripts": {
        "post-install-cmd": [
            "laurin1\\IISPermissionHandlerWindowsAuth\\ScriptHandler::fixPermissions"
        ],
        "post-update-cmd": [
            "laurin1\\IISPermissionHandlerWindowsAuth\\ScriptHandler::fixPermissions"
        ]
    },
    "extra": {
        "iis-permission-fix-folders": ["app/cache", "app/logs", "vendor"] # Defaults to: app/cache, app/logs, vendor - IF YOU WANT to use only one folder, be sure to leave off the brackets (ex. "vendor" NOT ["vendor"])!
    }
}

By default the permission handler will give minimal output. If you would like to receive more output (for debug for example), simple add the following to the extra section of your composer file.

    "extra": {
        "iis-permission-fix-debug": "true"
    }