Skip to content
Snippets Groups Projects

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

1 file
+ 14
1
Compare changes
  • Side-by-side
  • Inline
+ 14
1
@@ -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
#
Loading