summaryrefslogtreecommitdiff
path: root/Bastillefile
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2021-02-03 17:33:14 -0500
committerAdam T. Carpenter <atc@53hor.net>2021-02-03 17:33:14 -0500
commitca5650238f0c1a9fe6b3523eef5330666052e008 (patch)
tree3879c123671876287e388d0c922bcaf776f725ba /Bastillefile
parentcaf98ccab7ab40b6c54ef92e691bce6c72e98a27 (diff)
downloadnextcloud-ca5650238f0c1a9fe6b3523eef5330666052e008.tar.xz
nextcloud-ca5650238f0c1a9fe6b3523eef5330666052e008.zip
imported working live config
Diffstat (limited to 'Bastillefile')
-rw-r--r--Bastillefile35
1 files changed, 24 insertions, 11 deletions
diff --git a/Bastillefile b/Bastillefile
index 2846457..5e7319c 100644
--- a/Bastillefile
+++ b/Bastillefile
@@ -1,22 +1,35 @@
# Dirs and mounts
-CMD mkdir -p /usr/local/www/nextcloud
-CMD mkdir -p /media/nextcloud_data
-FSTAB /zroot/nextcloud /usr/local/www/nextcloud nullfs rw 0 0
-FSTAB /zroot/nextcloud_data /media/nextcloud_data nullfs rw 0 0
-
-# Users
-CMD pw useradd -n www -m -u 507 && echo Created www user uid 507
+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 /var/db/mysql
+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 nextcloud-php74 apache24 mod_php74 mysql180-server redis
+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
# Configuration
OVERLAY usr
+OVERLAY var
+
+# TODO: aide?
# Launch
+SYSRC apache24_enable=YES
SYSRC mysql_enable=YES
+SYSRC php_fpm_enable=YES
SYSRC redis_enable=YES
-SYSRC apache24_enable=YES
-#SERVICE mysql start
-#SERVICE redis start
+SERVICE mysql start
+SERVICE redis start
+SERVICE php-fpm start
SERVICE apache24 start