Skip to content

Commit

Permalink
Remove the script relates to cgroups
Browse files Browse the repository at this point in the history
  • Loading branch information
deepikas20 committed Feb 22, 2024
1 parent a639d4e commit 45b3d47
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
3 changes: 0 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,6 @@ COPY app /opt/app
COPY --from=ps /export/ps /opt/app
COPY --from=nsenter /export/nsenter /opt/app

# Temp fix to remove 'root' directories
COPY ./binaries/handle_directories.sh /opt/app

WORKDIR /opt/app

# Download and extract slirp4netns
Expand Down
3 changes: 0 additions & 3 deletions app/preuninstallscript.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ _appdirectory=/usr/local/packages/$_appname
_uname="$(stat -c '%U' "$_appdirectory")"
_uid="$(id "$_uname" -u)"

# Remove the user folder (this step should only be needed for cgroups v1 system)
rm -Rf "/run/user/$_uid"

# Remove the subuid/subgid mappings
sed -i "/$_uid/d" /etc/subuid
sed -i "/$_uid/d" /etc/subgid
8 changes: 0 additions & 8 deletions binaries/handle_directories.sh

This file was deleted.

0 comments on commit 45b3d47

Please sign in to comment.