Updating nextcloud stack installation (#104)

This commit is contained in:
Dedy Martadinata S
2022-11-05 05:11:05 +07:00
committed by GitHub
parent 2321f4c017
commit 82e37855b3
3 changed files with 13 additions and 0 deletions

View File

@@ -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

0
tools/install_flatnotes.sh Normal file → Executable file
View File

12
tools/install_nextcloud.sh Executable file
View File

@@ -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"