Skip to content
Snippets Groups Projects
Commit 90984720 authored by Erik von Reis's avatar Erik von Reis
Browse files

Merge branch 'install-epics-permissions' into 'master'

Setting group on a few directories that need to be written to

See merge request !380
parents 194b8e92 c58ed41b
No related branches found
No related tags found
3 merge requests!439RCG 5.0 release fro deb 10,!387Merge master branch into debian packaging branch,!380Setting group on a few directories that need to be written to
......@@ -35,6 +35,7 @@ site_letter=${ifo:0:1}
upper_system=`echo $system | tr a-z A-Z`
targetcpu=`grep TARGET_CPU ${MODEL_INC_DIR}/${system}.h | head -1 | awk '{print $3}'`
cur_date=`date +%y%m%d_%H%M%S`
ligo_group='advligorts'
RTCDS=/opt/rtcds/${site,,*}/${ifo,,*}
TARGET=$RTCDS/target/${system}
......@@ -61,6 +62,8 @@ else
cp -p ${EPICS_SRC_DIR}/config/${ifo}${upper_system}.txt $RTCDS/chans/${upper_system}.txt
fi
chgrp $ligo_group $RTCDS/chans/filter_archive/$system
##########
echo "Installing EPICS sequencer..."
......@@ -74,8 +77,14 @@ mkdir -p $TARGET/{bin,scripts,logs}
chmod 775 $TARGET/logs
mkdir -p $RTCDS/chans/tmp
chmod 775 $RTCDS/chans/tmp
chgrp $ligo_group $RTCDS/chans/tmp
mkdir -p $TARGET/${system}epics/burt
chmod 775 $TARGET/${system}epics/burt
mkdir -p $RTCDS/log/${system}/
chgrp $ligo_group $RTCDS/log/${system}/
chmod g+rwx $RTCDS/log/${system}/
if [ -e $RTCDS/target_archive/${system}/${system}_$cur_date/${system}epics/burt ]; then
cp -pr $RTCDS/target_archive/${system}/${system}_$cur_date/${system}epics/burt $TARGET/${system}epics
fi
......@@ -86,6 +95,8 @@ if test -e $TARGET/${system}epics/db/*/autoBurt.req; then
mv -f $TARGET/${system}epics/db/*/autoBurt.req $TARGET/${system}epics || exit 3
fi
chgrp $ligo_group $TARGET/${system}epics/burt/
##########
echo "Installing EPICS screens..."
......@@ -170,7 +181,9 @@ if [ x$gds_node != "x" ]; then
echo "Installing auto-generated DAQ config file..."
mkdir -p $RTCDS/chans/daq
mkdir -p $RTCDS/chans/daq/archive
mkdir -p $RTCDS/chans/daq/archive/
chgrp $ligo_group $RTCDS/chans/daq/archive/
chmod g+rwx $RTCDS/chans/daq/archive/
if test -e $RTCDS/chans/daq/${upper_system}.ini; then
mv -f $RTCDS/chans/daq/${upper_system}.ini $RTCDS/chans/daq/archive/${upper_system}_${cur_date}.ini || exit 2
#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment