dots/.config/task/taskrc.d/setup.sh

15 lines
531 B
Bash
Raw Normal View History

2023-04-14 17:34:14 +02:00
#!/usr/bin/env bash
# Evaluate environment variables into `server` config file
source ~/.env
config_file=~/.config/task/taskrc.d/server
2023-05-05 20:31:42 +02:00
echo "taskd.certificate=$XDG_DATA_HOME/task/default-client.cert.pem" > $config_file
echo "taskd.key=$XDG_DATA_HOME/task/default-client.key.pem" >> $config_file
echo "taskd.ca=$XDG_DATA_HOME/task/ca.cert.pem" >> $config_file
2023-04-14 17:34:14 +02:00
echo "taskd.trust=ignore hostname" >> $config_file
echo "taskd.server=$TASKD_SERVER:$TASKD_PORT" >> $config_file
echo "taskd.credentials=$TASKD_CREDS" >> $config_file