mkdir -p %{buildroot}/etc/systemd/system/
# --------------------------- COMMON
mkdir -p %{buildroot}/etc/profile.d/
-install -m 0644 utils/common/aliases.sh %{buildroot}/etc/profile.d/
%files
%{_caas_libexec_path}/merge_image.sh
-/etc/profile.d/aliases.sh
/etc/logrotate.d/kubelet-plugins
%exclude %{_caas_libexec_path}/*pyc
%exclude %{_caas_libexec_path}/*pyo
/usr/bin/systemctl daemon-reload
# --------------------------- DEPLOY
# --------------------------- COMMON
- rm -rf /etc/profile.d/aliases.sh
-
fi
+++ /dev/null
-#!/bin/sh
-# Copyright 2019 Nokia
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-# Swift
-function swiftauth { source /etc/swift/usr/admin/env_file; export SWIFT_AUTH_KEY=`curl --cacert /etc/swift/main/tls-proxy/ca.pem -XGET -i -H"X-Auth-User:${SWIFT_TENANT}:${SWIFT_USER}" -H"X-Auth-Key:${SWIFT_PASS}" "${SWIFT_URL}/auth/v1.0" | grep X-Auth-Token: | awk '{print $2;}'`; }
-function swiftget { curl --cacert /etc/swift/main/tls-proxy/ca.pem -XGET -H"X-Auth-Token: ${SWIFT_AUTH_KEY}" "${SWIFT_URL}/v1.0/AUTH_admin${1}"; }
-function swiftput { curl --cacert /etc/swift/main/tls-proxy/ca.pem -XPUT -H"X-Auth-Token: ${SWIFT_AUTH_KEY}" -T ${1} "${SWIFT_URL}/v1.0/AUTH_admin${2}"; }