diff --git a/infrastructure/backup/image/resources/install.sh b/infrastructure/backup/image/resources/install.sh index c14998a..28aa388 100755 --- a/infrastructure/backup/image/resources/install.sh +++ b/infrastructure/backup/image/resources/install.sh @@ -8,9 +8,8 @@ function babashka_install() { curl -SsLo /tmp/checksum https://github.com/babashka/babashka/releases/download/v${babashka_version}/babashka-${babashka_version}-linux-amd64.tar.gz.sha256 echo " /tmp/babashka-$babashka_version-linux-amd64.tar.gz"|tee -a /tmp/checksum sha256sum -c --status /tmp/checksum - tar -C /usr/local/bin -xf /tmp/babashka-${babashka_version}-linux-amd64.tar.gz - chown root /usr/local/bin/bb - chgrp root /usr/local/bin/bb + tar -C /tmp -xzf /tmp/babashka-${babashka_version}-linux-amd64.tar.gz + install -m 0700 -o root -g root /tmp/bb /usr/local/bin/ } function main() {