Unverified Commit 30f28760 authored by Chuck Lantz's avatar Chuck Lantz Committed by GitHub

Fix bad path to systemctl (#302)

parent 4b3ccf36
{ {
"id": "common-utils", "id": "common-utils",
"version": "1.1.4", "version": "1.1.5",
"name": "Common Debian Utilities", "name": "Common Debian Utilities",
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/common-utils", "documentationURL": "https://github.com/devcontainers/features/tree/main/src/common-utils",
"description": "Installs a set of common command line utilities, Oh My Zsh!, and sets up a non-root user.", "description": "Installs a set of common command line utilities, Oh My Zsh!, and sets up a non-root user.",
......
...@@ -292,7 +292,7 @@ cat << 'EOF' > /usr/local/bin/systemctl ...@@ -292,7 +292,7 @@ cat << 'EOF' > /usr/local/bin/systemctl
#!/bin/sh #!/bin/sh
set -e set -e
if [ -d "/run/systemd/system" ]; then if [ -d "/run/systemd/system" ]; then
exec /bin/systemctl/systemctl "$@" exec /bin/systemctl "$@"
else else
echo '\n"systemd" is not running in this container due to its overhead.\nUse the "service" command to start services instead. e.g.: \n\nservice --status-all' echo '\n"systemd" is not running in this container due to its overhead.\nUse the "service" command to start services instead. e.g.: \n\nservice --status-all'
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment