diff --git a/docker/thumbtack/.gitignore b/docker/thumbtack/.gitignore new file mode 100644 index 0000000..704d307 --- /dev/null +++ b/docker/thumbtack/.gitignore @@ -0,0 +1 @@ +*.whl diff --git a/docker/thumbtack/Dockerfile b/docker/thumbtack/Dockerfile index 7ff0d68..094ce11 100644 --- a/docker/thumbtack/Dockerfile +++ b/docker/thumbtack/Dockerfile @@ -19,12 +19,12 @@ RUN pip install thumbtack==0.4.2 WORKDIR "tmp/" RUN apt install -y wget -RUN wget https://github.com/libyal/libewf/releases/download/20201230/libewf-experimental-20201230.tar.gz -RUN tar -xf libewf-experimental-20201230.tar.gz -WORKDIR "/tmp/libewf-20201230/" +RUN wget https://github.com/libyal/libewf/releases/download/20240506/libewf-experimental-20240506.tar.gz +RUN tar -xf libewf-experimental-20240506.tar.gz +WORKDIR "/tmp/libewf-20240506/" RUN ./configure --enable-python3 --with-libfuse && make && make install RUN cp /usr/local/lib/libewf* /usr/lib/ -RUN rm -rf /tmp/libewf-experimental-20201230* +RUN rm -rf /tmp/libewf-experimental-20240506* WORKDIR "/" diff --git a/src/thumbtack/views.py b/src/thumbtack/views.py index 92f1ff5..f149e0c 100644 --- a/src/thumbtack/views.py +++ b/src/thumbtack/views.py @@ -114,10 +114,6 @@ def add_mountpoint_form(): if mountpoint_path is None or mountpoint_path == "": status = "No mountpoint provided." return render_template("form_complete.html", status=status) - if not os.path.isdir(mountpoint_path): - status = f"Could not find {mountpoint_path}. Ensure the mountpoint exists before adding it to thumbtack." - return render_template("form_complete.html", status=status) - if operation == "add_mountpoint": mounted_disk = add_mountpoint(rel_path, mountpoint_path) if mounted_disk: