Skip to content

Commit

Permalink
Remove the script of handling directories /run owned by root
Browse files Browse the repository at this point in the history
  • Loading branch information
deepikas20 committed Feb 22, 2024
1 parent 39b37f9 commit 5bce335
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
6 changes: 1 addition & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,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 Expand Up @@ -153,8 +150,7 @@ RUN <<EOF
-a slirp4netns \
-a rootlesskit \
-a rootlesskit-docker-proxy \
-a nsenter \
-a handle_directories.sh
-a nsenter
EOF

ENTRYPOINT [ "/opt/axis/acapsdk/sysroots/x86_64-pokysdk-linux/usr/bin/eap-install.sh" ]
2 changes: 0 additions & 2 deletions app/postinstallscript.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ After=network-online.target containerd.service var-spool-storage-SD_DISK.mount
Wants=network-online.target
After=user@$_uid.service
Requires=user@$_uid.service
[Service]
ExecStartPre=+$_appdirectory/handle_directories.sh $_uid $_uname $_gname
EOF

# reload daemon for service file changes to take effect
Expand Down
7 changes: 0 additions & 7 deletions binaries/handle_directories.sh

This file was deleted.

0 comments on commit 5bce335

Please sign in to comment.