summaryrefslogtreecommitdiff
path: root/Bastillefile
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2021-02-03 21:47:42 -0500
committerAdam T. Carpenter <atc@53hor.net>2021-02-03 21:47:42 -0500
commit0c515bbf1a463791aaeed8354a50c3a6c3bcc02b (patch)
tree29a2bb6ff4f7e3284b90ebe26d27420e9abcbb8b /Bastillefile
parentca5650238f0c1a9fe6b3523eef5330666052e008 (diff)
downloadnextcloud-0c515bbf1a463791aaeed8354a50c3a6c3bcc02b.tar.xz
nextcloud-0c515bbf1a463791aaeed8354a50c3a6c3bcc02b.zip
working template; just went with mounting existing install
Diffstat (limited to 'Bastillefile')
-rw-r--r--Bastillefile23
1 files changed, 12 insertions, 11 deletions
diff --git a/Bastillefile b/Bastillefile
index 5e7319c..0d4c731 100644
--- a/Bastillefile
+++ b/Bastillefile
@@ -1,22 +1,23 @@
# Dirs and mounts
CMD mkdir -p /mnt/nextcloud_data
-CMD mkdir -p /usr/local/www/nextcloud/config
-CMD mkdir -p /usr/local/www/nextcloud/themes
+CMD mkdir -p /usr/local/www/nextcloud
CMD mkdir -p /var/db/mysql
+FSTAB /zroot/nextcloud /usr/local/www/nextcloud nullfs rw 0 0
FSTAB /zroot/nextcloud_data /mnt/nextcloud_data nullfs rw 0 0
-FSTAB /zroot/nextcloud_conf /usr/local/www/nextcloud/config nullfs rw 0 0
-FSTAB /zroot/nextcloud_themes /usr/local/www/nextcloud/themes nullfs rw 0 0
FSTAB /zroot/nextcloud_db /var/db/mysql nullfs rw 0 0
# Depends
PKG apache24 mariadb105-server redis php74 php74-bz2 php74-ctype php74-curl php74-dom php74-exif php74-fileinfo php74-filter php74-gd php74-iconv php74-intl php74-json php74-ldap php74-mbstring php74-opcache php74-openssl php74-pdo php74-pdo_mysql php74-pecl-APCu php74-pecl-imagick php74-pecl-redis php74-posix php74-session php74-simplexml php74-xml php74-xmlreader php74-xmlwriter php74-xsl php74-zip php74-zlib php74-bcmath php74-gmp
-# Nextcloud
-CMD fetch -o /tmp https://download.nextcloud.com/server/releases/latest-20.tar.bz2
-CMD fetch -o /tmp https://download.nextcloud.com/server/releases/latest-20.tar.bz2.md5
-CMD cd /tmp ; shasum -a 512 -c latest-20.tar.bz2.sha512
-CMD tar -xkf /tmp/latest-20.tar.bz2 -C /usr/local/www
-CMD chown -R www:www /usr/local/www/nextcloud
+# Pull Nextcloud
+#CMD fetch -o /tmp https://download.nextcloud.com/server/releases/nextcloud-20.0.7.tar.bz2
+#CMD fetch -o /tmp https://download.nextcloud.com/server/releases/nextcloud-20.0.7.tar.bz2.sha512
+#CMD cd /tmp ; shasum -a 512 -c *.tar.bz2.sha512
+#CMD tar -xkf /tmp/*.tar.bz2 -C /usr/local/www
+#CMD chown -R www:www /usr/local/www/nextcloud
+
+# Permissions
+CMD pw usermod www -G redis
# Configuration
OVERLAY usr
@@ -29,7 +30,7 @@ SYSRC apache24_enable=YES
SYSRC mysql_enable=YES
SYSRC php_fpm_enable=YES
SYSRC redis_enable=YES
-SERVICE mysql start
+SERVICE mysql-server start
SERVICE redis start
SERVICE php-fpm start
SERVICE apache24 start