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
:: Hide Commands | |
@echo off | |
:: Setup User Interface | |
title Virtual Domain HOSTS Update | |
setlocal EnableExtensions | |
pushd "%~dp0" | |
:: Verify Administrator Access | |
call :IsAdmin 1 %* || exit /b 1 |
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
-- Disable foreign key checks temporarily -- | |
SET SQL_MODE=''; | |
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; | |
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO'; | |
-- Reset all vm2mage information | |
TRUNCATE TABLE `vm2mage_categories`; | |
-- Reset all category information | |
TRUNCATE TABLE `catalog_category_entity`; |
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
ifconfig en0 down | |
ifconfig en0 up |