Selaa lähdekoodia

Add install dashy.sh script

Robert Middleswarth 2 vuotta sitten
vanhempi
commit
54e537d2d1
1 muutettua tiedostoa jossa 12 lisäystä ja 0 poistoa
  1. 12 0
      tools/install_dashy.sh

+ 12 - 0
tools/install_dashy.sh

@@ -0,0 +1,12 @@
+#!/bin/bash
+
+function error {
+  echo -e "\\e[91m$1\\e[39m"
+  exit 1
+}
+
+echo "Creating directory..."
+sudo mkdir -p /portainer/Files/AppData/Config/Dashy/ || error "Failed to create Dashy folder!"
+echo "Creating a blank Dashy config files"
+sudo touch /portainer/Files/AppData/Config/Dashy/local-conf.yml || error "Failed to touch config.json file!"
+echo "Setup complete. You can now install the Dashy using the App Template."