Using oc-metadata --cached

This commit is contained in:
Manfred Touron 2015-03-21 23:57:52 +01:00
parent d36a1b0ed8
commit 9ae32d1579
No known key found for this signature in database
GPG Key ID: 0DCB9CE0CABAE1B5
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ Description=OCS fetch ssh keys from metadata
After=NetworkManager-wait-online.service
[Service]
ExecStart=/bin/bash -c "mkdir -p /root/.ssh/ ; chmod 700 /root/.ssh ; /usr/local/bin/oc-metadata | grep SSH_PUBLIC_KEYS_.*_KEY | cut -d'=' -f 2- | tr -d \\' > /root/.ssh/authorized_keys"
ExecStart=/bin/bash -c "mkdir -p /root/.ssh/ ; chmod 700 /root/.ssh ; /usr/local/bin/oc-metadata --cached | grep SSH_PUBLIC_KEYS_.*_KEY | cut -d'=' -f 2- | tr -d \\' > /root/.ssh/authorized_keys"
Type=oneshot
[Install]