浏览代码

Add install dashy.sh script

Robert Middleswarth 2 年之前
父节点
当前提交
54e537d2d1
共有 1 个文件被更改,包括 12 次插入0 次删除
  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."