]> git.proxmox.com Git - ceph.git/blob - ceph/src/pmdk/utils/magic-install.sh
import ceph 16.2.7
[ceph.git] / ceph / src / pmdk / utils / magic-install.sh
1 #!/usr/bin/env bash
2 # SPDX-License-Identifier: BSD-3-Clause
3 # Copyright 2014-2017, Intel Corporation
4 #
5 # magic-install.sh -- Script for installing magic script
6 #
7 set -e
8
9 if ! grep -q "File: pmdk" /etc/magic
10 then
11 echo "Appending PMDK magic to /etc/magic"
12 cat /usr/share/pmdk/pmdk.magic >> /etc/magic
13 else
14 echo "PMDK magic already exists"
15 fi