Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # Sitecore will be restarted becasue of change configuration file, please refresh browser!
- #
- $configDisabled = Join-Path -Path $AppPath -ChildPath "App_Config\Include\Feature\z.SPE.Sync.Enabler.Gulp.config.disabled"
- $configEnabled = $configDisabled -replace '.disabled',''
- if( Test-Path $configDisabled )
- {
- $response = Show-Confirm -Title "Enable Creative Exchange Live.`r`nSitecore will be restarted because file $configDisabled will be renamed.`r`nWould you like to continue?"
- if( $response -eq 'yes')
- {
- Rename-Item -Path $configDisabled -NewName $configEnabled
- }
- }
- elseif( Test-Path $configEnabled )
- {
- $response = Show-Confirm -Title "Disable Creative Exchange Live.`r`nSitecore will be restarted because file $configEnabled will be renamed.`r`nWould you like to continue?"
- if( $response -eq 'yes')
- {
- Rename-Item -Path $configEnabled -NewName $configDisabled
- }
- }
Add Comment
Please, Sign In to add comment