X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=build%2Fscripts%2Fcu_script.sh;fp=build%2Fscripts%2Fcu_script.sh;h=4737f588b5a2b871efcdad176f5f42eb3f6dc416;hb=3235ecfc7414aa0b72d0ad50db63ae8b5626045b;hp=0000000000000000000000000000000000000000;hpb=997e3f26d55352586a1d4d0c46c41a98452af88a;p=o-du%2Fl2.git diff --git a/build/scripts/cu_script.sh b/build/scripts/cu_script.sh new file mode 100644 index 000000000..4737f588b --- /dev/null +++ b/build/scripts/cu_script.sh @@ -0,0 +1,45 @@ +################################################################################ +# Copyright (c) [2017-2019] [Radisys] +# # +# # +# 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. +# # +################################################################################ + +#!/bin/sh + +ROOT_DIR=$PWD +d=`date +%Y_%m_%d_%I_%M_%S` + +touch $ROOT_DIR/"log_cu_stub_$d.txt" +chmod -c 777 $ROOT_DIR/"log_cu_stub_$d.txt" +touch /etc/rsyslog.d/rsyslog_loginauth.conf +cp /dev/null /etc/rsyslog.d/rsyslog_loginauth.conf +echo "if \$programname == \"CU_STUB\" then" >> \ +/etc/rsyslog.d/rsyslog_loginauth.conf +echo "$ROOT_DIR/../cu_stub/log_cu_stub_$d.txt" >> \ +/etc/rsyslog.d/rsyslog_loginauth.conf +systemctl restart rsyslog + + +#********************************************************************** +# End of file +#**********************************************************************