diff options
Diffstat (limited to 'Bastillefile')
-rw-r--r-- | Bastillefile | 35 |
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 |