Skip to content

rm: cannot remove '/home/game/settings/.git/objects/50': Directory not empty #3

@ajdergute

Description

@ajdergute

I've tried the latest image as follows:

podman pull docker.io/msh100/rtcw
podman run --network=host -d --restart unless-stopped --name rtcw \
  -p "27130:27130/udp" \
  -e "MAP_PORT=27130" \
  -e "MAPS=te_frostbite:te_adlernest_b1:braundorf_b7:bd_bunker_b2:te_delivery_b1:oasis_b1:radar_b4:mp_garage:mp_pacific:mp_breakout:mp_marketgarden:te_kungfugrip:te_escape2:te_ufo:mp_ctfmultidemo:bp_badplace:mp_basement:mp_dam:hydro_dam_v2" \
  -e "MAXCLIENTS=32" \
  -e "NOQUERY=true" \
  -e "TIMEOUTLIMIT=3" \
  -e "AUTO_UPDATE=true" \
  -e "SETTINGSURL=https://github.com/Oksii/rtcw-config" \
...
  docker.io/msh100/rtcw

Before configuration switch to Oksii this works like a charm. Now I get the following error:

Checking if any configuration updates exist to pull
Cloning into '/home/game/settings.new'...
rm: cannot remove '/home/game/settings/.git/objects/50': Directory not empty
Attempting to download te_frostbite
--2022-11-13 20:02:57--  http://rtcw.life/files/mapdb/te_frostbite.pk3
Resolving rtcw.life (rtcw.life)... 104.153.105.209
Connecting to rtcw.life (rtcw.life)|104.153.105.209|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8154224 (7.8M)
Saving to: '/home/game/main/te_frostbite.pk3.tmp'

git clone fails silently while removing .git folder.

I guess this is, cause git clone assume the directory to clone into is either empty or the actual repository being cloned. But as I see, the repository cloned inside Dockerfile is:

https://github.com/msh100/rtcw/blob/master/Dockerfile#L79

Maybe removing all old directories, including dot-directories in here

https://github.com/msh100/rtcw/blob/master/entrypoint.sh#L29

will fix this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions