Explorar o código

Updating nextcloud stack installation (#104)

Dedy Martadinata S %!s(int64=2) %!d(string=hai) anos
pai
achega
82e37855b3
Modificáronse 2 ficheiros con 13 adicións e 0 borrados
  1. 1 0
      stack/nextcloud.yml
  2. 12 0
      tools/install_flatnotes.sh

+ 1 - 0
stack/nextcloud.yml

@@ -10,6 +10,7 @@ services:
       - TZ=${TZ}
     volumes:
       - /portainer/Files/AppData/Config/Nextcloud/Config:/config
+      - /portainer/Files/AppData/Config/Nextcloud/Data:/data
     ports:
       - ${PORT}:443
     restart: unless-stopped

+ 12 - 0
tools/install_flatnotes.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/Nextcloud/Config || error "Failed to create Config folder!"
+sudo mkdir -p /portainer/Files/AppData/Config/Nextcloud/Data || error "Failed to Data folder!"
+sudo chown -R 1000.1000 /portainer/Files/AppData/Config/Nextcloud || error "Failed set permission Nextloud folder!"
+echo "Setup complete. You can now install Nextcloud using the App Template. This script specified for Nextcloud stack"