Cinera setup changes

This commit is contained in:
Asaf Gartner 2021-09-04 23:19:12 +03:00
parent 307a122518
commit e19656e2ef
5 changed files with 14 additions and 2 deletions

View File

@ -7,6 +7,7 @@ export SCHEME=https
export CINERA_MONIT_GROUP=cinera
export CINERA_SCRIPT_PATH=/home/hmn/hmn/cinera
export ANNOTATIONS_USER=annotations
export ANNOTATIONS_USER_GROUP=annotations
# NOTE(asaf): Known-working version as of 2021-08-26
export CINERA_VERSION=6da970d48ca2cee861b7fe2d8f4d7ed6ca9ccce1

View File

@ -6,6 +6,15 @@ if [ ! -e "cinera.conf" ]; then
fi
. cinera.conf
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
./update_cinera.sh
./update_annotations.sh

View File

@ -17,6 +17,7 @@ fi
cd $CINERA_HMML_PATH
git pull
chown -R $ANNOTATIONS_USER:$ANNOTATIONS_USER_GROUP $CINERA_HMML_PATH
cp -av $CINERA_HMML_PATH/cmuratori/hero/cinera__hero.css $CINERA_ASSETS_PATH/
cp -av $CINERA_HMML_PATH/miotatsu/riscy/cinera__riscy.css $CINERA_ASSETS_PATH/

View File

@ -6,10 +6,10 @@ if [ ! -e "cinera.conf" ]; then
fi
. cinera.conf
monit -g $CINERA_MONIT_GROUP stop
systemctl stop cinera.service
CMD="cd $CINERA_SCRIPT_PATH; ./user_update_cinera.sh"
su - $ANNOTATIONS_USER -c "$CMD"
monit -g $CINERA_MONIT_GROUP start
systemctl start cinera.service

View File

@ -52,6 +52,7 @@ if [ $checkpoint -lt 20 ]; then
--shell /bin/bash \
--create-home --home-dir /home/annotations \
annotations
usermod -a -G annotations hmn
savecheckpoint 20
fi