hmn/cinera/update_cinera.sh

16 lines
257 B
Bash
Raw Normal View History

#!/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
systemctl stop cinera.service
CMD="cd $CINERA_SCRIPT_PATH; ./user_update_cinera.sh"
su - $ANNOTATIONS_USER -c "$CMD"
2021-09-04 20:19:12 +00:00
systemctl start cinera.service