You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
#!/bin/sh
# Figure out latest release via GitHub APIrelease=$(curl --silent "https://api.github.com/repos/krallin/tini/releases/latest" | jq -r .tag_name)
# _Reliable_ way to get which arch for tini downloadarch=$(python <<EOFfrom __future__ import print_functionimport platformprocessor = platform.machine()if processor == 'aarch64': print('arm64', end='')elif processor == 'x86 64' or processor == 'x86_64': print('amd64', end='')elif processor == 'armv7l': print('armhf', end='')
EOF)
# Download/install tinicurl -L https://github.com/krallin/tini/releases/download/$release/tini-static-$arch \
-o /sbin/tinichmod a+x /sbin/tini
|