Skip to content

octoprint tar.gz file is not removed #276

@e-minguez

Description

@e-minguez

&& tar xzf ${octoprint_ref}.tar.gz --strip-components 1 -C /opt/octoprint --no-same-owner

Ideally it should be added:

&& tar xzf ${octoprint_ref}.tar.gz --strip-components 1 -C /opt/octoprint --no-same-owner \
&& rm -f ${octoprint_ref}.tar.gz

Otherwise the tar.gz file is there:

$ podman exec -it octoprint /bin/bash -c "ls -l /"
total 5875
-rw-r--r--   1 root   root    5963556 Nov  5 09:23 1.10.3.tar.gz
drwxr-xr-x   2 root   root        202 Sep 12  2020 bin
drwxr-xr-x   2 root   root          2 Aug 14  2024 boot
drwxr-xr-x   5 root   root        360 Mar 21 11:14 dev
drwxr-xr-x  21 root   root          6 Mar 21 11:14 etc
drwxr-xr-x   2 root   root          2 Aug 14  2024 home
-rwxr-xr-x   1 root   root        389 Sep 12  2020 init
drwxr-xr-x   8 root   root          6 Nov  5 09:23 lib
drwxr-xr-x   2 root   root          3 Oct 16 00:00 lib64
drwxr-xr-x   2 root   root          5 May 12  2020 libexec
drwxr-xr-x   2 root   root          2 Oct 16 00:00 media
drwxr-xr-x   3 root   root          3 Nov  5 09:24 mjpg
drwxr-xr-x   2 root   root          2 Oct 16 00:00 mnt
drwxr-xr-x   4 root   root          4 Mar 21 09:13 octoprint
drwxr-xr-x   3 root   root          3 Nov  5 09:23 opt
dr-xr-xr-x 680 nobody nogroup       0 Mar 21 11:14 proc
drwx------   4 root   root          4 Mar 21 11:17 root
drwxr-xr-x   4 root   root          4 Mar 21 11:14 run
drwxr-xr-x   2 root   root          3 Nov  5 09:22 sbin
drwxr-xr-x   2 root   root          2 Oct 16 00:00 srv
dr-xr-xr-x  13 nobody nogroup       0 Mar 21 11:14 sys
drwxrwxrwt   2 root   root          2 Mar 21 11:14 tmp
drwxr-xr-x  11 root   root          3 Mar 21 11:14 usr
drwxr-xr-x  11 root   root          5 Oct 16 00:00 var

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions