uci-nextcloud/scripts/preparehost

13 lines
534 B
Plaintext
Raw Permalink Normal View History

2022-11-18 09:00:18 -08:00
#!/bin/bash
source ../.env
echo making folder for volume userfiles at $HOST_NEXTCLOUD_USERFILES
sudo mkdir -p $HOST_NEXTCLOUD_USERFILES
sudo chown -R nextcloud:docker $HOST_NEXTCLOUD_USERFILES
echo making folder for volume web app source files at $HOST_NEXTCLOUD_SRC
sudo mkdir -p $HOST_NEXTCLOUD_SRC
sudo chown -R nextcloud:docker $HOST_NEXTCLOUD_SRC
echo making folder for volume database at $HOST_NEXTCLOUD_DB
sudo mkdir -p $HOST_NEXTCLOUD_DB
sudo chown -R 999:docker $HOST_NEXTCLOUD_DB
ls -la $HOST_NEXTCLOUD_PARENT_DIR/nextcloud