remove sh from bashrc

This commit is contained in:
2023-07-11 10:17:44 +00:00
parent 1bc05ad991
commit 8b0fe68f8f

View File

@@ -73,7 +73,7 @@ Defaults env_keep += PRE_NAMESPACE_PWD
EOF EOF
if ! grep 'start-systemd-namespace' /etc/bash.bashrc >/dev/null; then if ! grep 'start-systemd-namespace' /etc/bash.bashrc >/dev/null; then
$SUDO_CMD sed -i 2a"# Start or enter a PID namespace in WSL2\nsource /usr/local/bin/start-systemd-namespace.sh\n" /etc/bash.bashrc $SUDO_CMD sed -i 2a"# Start or enter a PID namespace in WSL2\nsource /usr/local/bin/start-systemd-namespace\n" /etc/bash.bashrc
fi fi
$SUDO_CMD rm -f /etc/systemd/user/sockets.target.wants/dirmngr.socket $SUDO_CMD rm -f /etc/systemd/user/sockets.target.wants/dirmngr.socket