This repository has been archived on 2024-07-08. You can view files and clone it, but cannot push or open issues or pull requests.
hmn/cinera/update_cinera.sh

16 lines
257 B
Bash
Executable File

#!/bin/bash
if [ ! -e "cinera.conf" ]; then
echo "Can't find cinera.conf"
exit
fi
. cinera.conf
systemctl stop cinera.service
CMD="cd $CINERA_SCRIPT_PATH; ./user_update_cinera.sh"
su - $ANNOTATIONS_USER -c "$CMD"
systemctl start cinera.service