install_nextcloud.sh 540 B

123456789101112
  1. #!/bin/bash
  2. function error {
  3. echo -e "\\e[91m$1\\e[39m"
  4. exit 1
  5. }
  6. echo "Creating directory..."
  7. sudo mkdir -p /portainer/Files/AppData/Config/Nextcloud/Config || error "Failed to create Config folder!"
  8. sudo mkdir -p /portainer/Files/AppData/Config/Nextcloud/Data || error "Failed to Data folder!"
  9. sudo chown -R 1000:1000 /portainer/Files/AppData/Config/Nextcloud || error "Failed set permission Nextloud folder!"
  10. echo "Setup complete. You can now install Nextcloud using the App Template. This script specified for Nextcloud stack"