2021-08-28 10:40:13 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [ ! -e "cinera.conf" ]; then
|
|
|
|
echo "Can't find cinera.conf"
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
. cinera.conf
|
|
|
|
|
2021-09-04 20:19:12 +00:00
|
|
|
mkdir -p $CINERA_OUTPUT_PATH
|
|
|
|
mkdir -p $CINERA_ASSETS_PATH
|
|
|
|
mkdir -p $CINERA_SCRIPT_PATH/data
|
|
|
|
|
|
|
|
chgrp $ANNOTATIONS_USER_GROUP $CINERA_OUTPUT_PATH
|
|
|
|
chgrp $ANNOTATIONS_USER_GROUP $CINERA_ASSETS_PATH
|
|
|
|
chgrp $ANNOTATIONS_USER_GROUP $CINERA_SCRIPT_PATH
|
|
|
|
chgrp $ANNOTATIONS_USER_GROUP $CINERA_SCRIPT_PATH/data
|
2021-09-04 21:57:16 +00:00
|
|
|
chmod 775 $CINERA_OUTPUT_PATH
|
|
|
|
chmod 775 $CINERA_ASSETS_PATH
|
|
|
|
chmod 775 $CINERA_SCRIPT_PATH
|
|
|
|
chmod 775 $CINERA_SCRIPT_PATH/data
|
2021-09-04 20:19:12 +00:00
|
|
|
|
2021-08-28 10:40:13 +00:00
|
|
|
./update_cinera.sh
|
2021-09-04 21:09:01 +00:00
|
|
|
|
|
|
|
CMD="cd $CINERA_SCRIPT_PATH; ./update_annotations.sh"
|
|
|
|
su - $ANNOTATIONS_USER -c "$CMD"
|
2021-08-28 10:40:13 +00:00
|
|
|
|
2021-08-28 20:36:52 +00:00
|
|
|
mkdir -p data
|