none
This commit is contained in:
parent
8f5ad2984a
commit
6cf58ae408
3 changed files with 17 additions and 3 deletions
|
|
@ -23,8 +23,9 @@
|
|||
use warnings;
|
||||
use strict;
|
||||
|
||||
use Cwd; # Fast way to get the current directory
|
||||
use lib getcwd();
|
||||
use Cwd qw(getcwd); # Fast way to get the current directory
|
||||
use FindBin qw($Bin);
|
||||
use lib $Bin;
|
||||
use Frontier::Daemon::OGP::Forking; # Forking XML-RPC server
|
||||
use File::Copy; # Simple file copy functions
|
||||
use File::Copy::Recursive
|
||||
|
|
|
|||
|
|
@ -29,6 +29,19 @@ if not exist "%WD%OGP\ogp_agent.pl" (
|
|||
exit /b 1
|
||||
)
|
||||
|
||||
if not exist "%WD%OGP\Cfg\Config.pm" (
|
||||
echo Creating default Cfg\Config.pm from Config.pm.default...
|
||||
copy /Y "%WD%OGP\Cfg\Config.pm.default" "%WD%OGP\Cfg\Config.pm" >nul
|
||||
)
|
||||
if not exist "%WD%OGP\Cfg\Preferences.pm" (
|
||||
echo Creating default Cfg\Preferences.pm from Preferences.pm.default...
|
||||
copy /Y "%WD%OGP\Cfg\Preferences.pm.default" "%WD%OGP\Cfg\Preferences.pm" >nul
|
||||
)
|
||||
if not exist "%WD%OGP\Cfg\bash_prefs.cfg" (
|
||||
echo Creating default Cfg\bash_prefs.cfg from bash_prefs.cfg.default...
|
||||
copy /Y "%WD%OGP\Cfg\bash_prefs.cfg.default" "%WD%OGP\Cfg\bash_prefs.cfg" >nul
|
||||
)
|
||||
|
||||
REM Verify gameserver user exists
|
||||
net user %AGENT_USER%
|
||||
if errorlevel 1 (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue