This repository has been archived on 2026-08-11. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
dots/.config/task/taskrc.d/setup.sh
T
2023-04-14 17:34:14 +02:00

15 lines
495 B
Bash
Executable File

#!/usr/bin/env bash
# Evaluate environment variables into `server` config file
source ~/.env
config_file=~/.config/task/taskrc.d/server
echo "taskd.certificate=~/.task/default-client.cert.pem" > $config_file
echo "taskd.key=~/.task/default-client.key.pem" >> $config_file
echo "taskd.ca=~/.task/ca.cert.pem" >> $config_file
echo "taskd.trust=ignore hostname" >> $config_file
echo "taskd.server=$TASKD_SERVER:$TASKD_PORT" >> $config_file
echo "taskd.credentials=$TASKD_CREDS" >> $config_file