Remove the FilePile asset from the file system and the config files.

This commit is contained in:
Colin Kuskie 2011-10-11 15:59:14 -07:00
parent 917480fe29
commit f479d2ece8
3 changed files with 17 additions and 278 deletions

View file

@ -0,0 +1,17 @@
use WebGUI::Upgrade::Script;
use File::Spec;
use WebGUI::Paths;
use Cwd qw(realpath);
start_step "Removing FilePile asset from config file";
session->config->delete( 'assets/FilePile' );
done;
start_step "Removing FilePile asset module";
my $webgui_root = realpath( File::Spec->catdir( WebGUI::Paths->configBase, (File::Spec->updir) x 1 ) );
unlink File::Spec->catfile($webgui_root, 'lib', 'WebGUI', 'Asset', 'FilePile');
done;