pi-hosted/tools/traefik.sh
Robert Middleswarth 0940f1e7fc
Migrate all the tools to a sub folder called tools. (#110)
* Migrate all the scripts to the tools folder
2021-11-01 22:14:04 -04:00

17 lines
662 B
Bash
Executable file

#!/bin/bash
function error {
echo -e "\\e[91m$1\\e[39m"
exit 1
}
echo "Creating directories..."
sudo mkdir -p /portainer/Files/AppData/Config/traefik || error "Failed to create traefik folder!"
echo "Creating a blank traefik config files"
sudo touch /portainer/Files/AppData/Config/traefik/traefik.yml || error "Failed to create traefik route config!"
sudo touch /portainer/Files/AppData/Config/traefik/config.yml || error "Failed to create traefik config!"
sudo touch /portainer/Files/AppData/Config/traefik/acme.json || error "Failed to create traefik certificate storage!"
echo "Setup complete. You can now install the stack using the App Template."