From bcc6ba8146cf8f4e4862dc400106d50e2906a6c3 Mon Sep 17 00:00:00 2001 From: difegue Date: Wed, 21 Sep 2016 21:34:12 +0200 Subject: [PATCH] Separated temporary folder from the content folder. Fixes issues with the Docker install. Signed-off-by: difegue --- Readme.md | 2 +- functions/functions_reader.pl | 2 +- index.pl | 2 +- templates/upload.tmpl | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Readme.md b/Readme.md index 78ec277e5..c587842ba 100644 --- a/Readme.md +++ b/Readme.md @@ -10,7 +10,7 @@ You can find a demo [here](http://faglord.party/lanraragi). *Comes in various flavors, from flat design apologist to sad panda.* ##Hotdog ! How do I install this ? -You can find the installation and update guide [here](https://github.com/Difegue/LANraragi/wiki/LANraragi-Installation-and-Update-Manual) for Linux/Windows/macOS machines. +You can find the installation guide [here](https://github.com/Difegue/LANraragi/wiki) for Linux/Windows/macOS machines. ##I got me a setup, how do I use this ? First, login with the default admin password (kamimamita), and hit the configuration page. diff --git a/functions/functions_reader.pl b/functions/functions_reader.pl index 5c8d5f6bd..babb13b3a 100644 --- a/functions/functions_reader.pl +++ b/functions/functions_reader.pl @@ -42,7 +42,7 @@ sub getImage my ($id, $force, $thumbreload, $pagenum) = @_; my $img = Image::Magick->new; #Used for image resizing - my $tempdir = &get_dirname."/temp"; + my $tempdir = "./temp"; #Redis stuff: Grab archive path and update some things diff --git a/index.pl b/index.pl index 9d12bab29..5cbbd9669 100644 --- a/index.pl +++ b/index.pl @@ -20,7 +20,7 @@ #This should be enough supported file extensions, right? The old lsar method was hacky and took too long. my @filez = glob("$dirname/*.zip $dirname/*.rar $dirname/*.7z $dirname/*.tar $dirname/*.tar.gz $dirname/*.lzma $dirname/*.xz $dirname/*.cbz $dirname/*.cbr"); - remove_tree($dirname.'/temp'); #Remove temp dir. + remove_tree('./temp'); #Remove temp dir. my $table; diff --git a/templates/upload.tmpl b/templates/upload.tmpl index 1ff63495a..4edfa8b1e 100644 --- a/templates/upload.tmpl +++ b/templates/upload.tmpl @@ -31,9 +31,9 @@
- - - Select files to upload... + +
+ Upload files