From 9344cfb4e321adeca8d3461b9707ba23b9071989 Mon Sep 17 00:00:00 2001 From: Akkadius Date: Wed, 11 Mar 2015 21:06:58 -0500 Subject: [PATCH] [eqemu_update.pl] Add Option 20) to self update script [skip ci] --- utils/scripts/eqemu_update.pl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/utils/scripts/eqemu_update.pl b/utils/scripts/eqemu_update.pl index 73e1423eb..e09a5598c 100644 --- a/utils/scripts/eqemu_update.pl +++ b/utils/scripts/eqemu_update.pl @@ -164,6 +164,10 @@ else{ ShowMenuPrompt(); } +sub UpdateSelf{ + GetRemoteFile("https://raw.githubusercontent.com/EQEmu/Server/master/utils/scripts/eqemu_update.pl", "eqemu_update.pl"); + die "Rerun eqemu_update.pl"; +} sub ShowMenuPrompt { my %dispatch = ( @@ -175,6 +179,7 @@ sub ShowMenuPrompt { 6 => \&MapFiles_Fetch, 7 => \&Plugins_Fetch, 8 => \&QuestFiles_Fetch, + 20 => \&UpdateSelf, 0 => \&Exit, ); @@ -230,6 +235,7 @@ Database Management Menu (Please Select): 6) Maps - Download latest map and water files 7) Plugins - Download latest Perl plugins 8) Quests - Download latest PEQ quests and stage updates + 20) Force update this script (Redownload) 0) Exit EO_MENU