#!/bin/bash
#
# Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
# Licensed under the GNU General Public License Version 3 as shown at https://www.gnu.org/licenses/gpl-3.0.txt.

whitelist="/etc/systemd/system/kubelet.service.d/10-kubeadm.conf
"

set -e

if echo "$whitelist" | grep -q -x "$1" ; then
	chmod $2 "$1"
	exit 0
fi

echo "$1 cannot be copied by this script"
exit 1
