Переглянути джерело

Tweak the install file a bit to make it more smoth of a process.

Robert Middleswarth 2 роки тому
батько
коміт
55de851f7f
1 змінених файлів з 1 додано та 2 видалено
  1. 1 2
      tools/install_dashy.sh

+ 1 - 2
tools/install_dashy.sh

@@ -7,11 +7,10 @@ function error {
 
 
 echo "Creating directory..."
 echo "Creating directory..."
 sudo mkdir -p /portainer/Files/AppData/Config/Dashy/ || error "Failed to create Dashy folder!"
 sudo mkdir -p /portainer/Files/AppData/Config/Dashy/ || error "Failed to create Dashy folder!"
-echo "Confirm that local-conf.yml is not a directory"
+echo "Creating a blank Dashy config files"
 if [ -d /portainer/Files/AppData/Config/Dashy/local-conf.yml ];
 if [ -d /portainer/Files/AppData/Config/Dashy/local-conf.yml ];
 then
 then
     sudo rm -rf /portainer/Files/AppData/Config/Dashy/local-conf.yml || error "Failed to remove the folder /portainer/Files/AppData/Config/Dashy/local-conf.yml!"
     sudo rm -rf /portainer/Files/AppData/Config/Dashy/local-conf.yml || error "Failed to remove the folder /portainer/Files/AppData/Config/Dashy/local-conf.yml!"
 fi
 fi
-echo "Creating a blank Dashy config files"
 sudo touch /portainer/Files/AppData/Config/Dashy/local-conf.yml || error "Failed to touch local-conf.yml file!"
 sudo touch /portainer/Files/AppData/Config/Dashy/local-conf.yml || error "Failed to touch local-conf.yml file!"
 echo "Setup complete. You can now install the Dashy using the App Template."
 echo "Setup complete. You can now install the Dashy using the App Template."