Azure / Azure/custom-script-extension-linux

Do not assume bash is in /bin

Open
#122 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
113
Forks
46
Avg merge
6d 3h
Merged PRs (30d)
3

Description

Currently `custom-script-shim` use `/bin/bash` as interpreter but on some distro (notably NixOS) this is not where bash is available.

Could `#!/usr/bin/env bash` be used instead?

`custom-script-extension` may also suffer from a similar problem as it fails with
```
-bash: /var/lib/waagent/Microsoft.Azure.Extensions.CustomScript-2.0.6/bin/custom-script-extension: No such file or directory
```
But since it's a blob I am not sure how to verify that.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.