Remove the FilePile asset from the file system and the config files.
This commit is contained in:
parent
917480fe29
commit
f479d2ece8
3 changed files with 17 additions and 278 deletions
17
share/upgrades/7.10.18-8.0.0/removeFilePile.pl
Normal file
17
share/upgrades/7.10.18-8.0.0/removeFilePile.pl
Normal 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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue