Skip to content

Commit

Permalink
Remove symlinks of docker-compose cli plugins and docker socket (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
deepikas20 authored Mar 6, 2024
1 parent bc20b90 commit 38ca494
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
11 changes: 0 additions & 11 deletions app/postinstallscript.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,6 @@ EOF
# reload daemon for service file changes to take effect
systemctl daemon-reload

# Create docker symbolic link
mkdir -p /usr/local/bin
ln -s /usr/local/packages/dockerdwrapperwithcompose/docker /usr/local/bin/docker

# Create docker-compose symbolic link
mkdir -p /usr/local/lib/docker/cli-plugins
ln -s /usr/local/packages/dockerdwrapperwithcompose/docker-compose /usr/local/lib/docker/cli-plugins/docker-compose

# Create docker socket symbolic link
ln -s /var/run/user/"$_uid"/docker.sock /var/run/docker.sock

# *** non-root user should be able to do this ****

# Move the daemon.json file into localdata folder
Expand Down
8 changes: 0 additions & 8 deletions app/preuninstallscript.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,6 @@ if [ "$(id -un)" != "root" ]; then
exit 77 # EX_NOPERM
fi

# Remove docker symbolic link
rm /usr/local/bin/docker

# Remove docker-compose symbolic link
rm /usr/local/lib/docker/cli-plugins/docker-compose

rm /var/run/docker.sock

# *** root user required ****
# TODO Add a check of who the user is and log warning if not root

Expand Down

0 comments on commit 38ca494

Please sign in to comment.