chmod .netrc to private

netrc gem checks for permissions and drone-runner-docker creates the file with 644 permission

```
Netrc::Error:
       Permission bits for '/root/.netrc' should be 0600, but are 644
```
This commit is contained in:
Imran Ismail
2020-04-03 12:16:30 +08:00
committed by GitHub
parent db5468f23b
commit 83d3ac97b8

View File

@@ -36,6 +36,7 @@ func Script(commands []string) string {
const optionScript = `
if [ ! -z "${DRONE_NETRC_FILE}" ]; then
echo $DRONE_NETRC_FILE > $HOME/.netrc
chmod 600 $HOME/.netrc
fi
unset DRONE_SCRIPT