From 3ef2a394dc5c125347f2544915c9dfc6dab12767 Mon Sep 17 00:00:00 2001 From: Thorsten Spille Date: Sun, 20 Mar 2022 15:43:49 +0100 Subject: [PATCH] Update ispconfig --- plugins/ispconfig | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/plugins/ispconfig b/plugins/ispconfig index ad9fef2..bc21285 100644 --- a/plugins/ispconfig +++ b/plugins/ispconfig @@ -26,10 +26,16 @@ while getopts "hZ:" opt; do done shift $((OPTIND-1)) +if [ ! $(zfs list $ZPOOL/ispconfig/www) ]; then + zfs create -o mountpoint=/var/www $ZPOOL/ispconfig/www +fi +if [ ! $(zfs list $ZPOOL/ispconfig/backup) ]; then + zfs create -o mountpoint=/var/backup $ZPOOL/ispconfig/backup +fi +if [ ! $(zfs list $ZPOOL/ispconfig/mysql) ]; then + zfs create -o mountpoint=/var/lib/mysql $ZPOOL/ispconfig/mysql +fi -zfs create -o mountpoint=/var/www $ZPOOL/ispconfig/www -zfs create -o mountpoint=/var/backup $ZPOOL/ispconfig/backup -zfs create -o mountpoint=/var/lib/mysql $ZPOOL/ispconfig/mysql wget -O - https://get.ispconfig.org | sh -s -- --help #Rar is not available, so we go with Midnight Commander:) sed -i 's/rar/mc/g' /tmp/ispconfig-ai/lib/os/class.ISPConfigDebianOS.inc.php