diff --git a/src/bookstack/install-service.sh b/src/bookstack/install-service.sh index 1ac181a..00d0626 100644 --- a/src/bookstack/install-service.sh +++ b/src/bookstack/install-service.sh @@ -20,7 +20,7 @@ DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt install -y -qq zip u wget -O /opt/wkhtmltox_0.12.6-1.buster_amd64.deb https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.buster_amd64.deb DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt install -y -qq /opt/wkhtmltox_0.12.6-1.buster_amd64.deb -mkdir /etc/nginx/ssl +mkdir -p /etc/nginx/ssl openssl req -x509 -nodes -days 3650 -newkey rsa:4096 -keyout /etc/nginx/ssl/open3a.key -out /etc/nginx/ssl/open3a.crt -subj "/CN=$LXC_HOSTNAME.$LXC_DOMAIN" -addext "subjectAltName=DNS:$LXC_HOSTNAME.$LXC_DOMAIN" PHP_VERSION=$(php -v | head -1 | cut -d ' ' -f2) diff --git a/src/kimai/install-service.sh b/src/kimai/install-service.sh index c07e4ed..95f9fd1 100644 --- a/src/kimai/install-service.sh +++ b/src/kimai/install-service.sh @@ -21,7 +21,7 @@ apt update DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt install -y -qq zip unzip sudo nginx-full mariadb-server mariadb-client php8.1 php8.1-intl php8.1-cli php8.1-fpm php8.1-mysql php8.1-xml php8.1-mbstring php8.1-gd php8.1-tokenizer php8.1-zip php8.1-opcache php8.1-curl -mkdir /etc/nginx/ssl +mkdir -p /etc/nginx/ssl openssl req -x509 -nodes -days 3650 -newkey rsa:4096 -keyout /etc/nginx/ssl/kimai.key -out /etc/nginx/ssl/kimai.crt -subj "/CN=$LXC_HOSTNAME.$LXC_DOMAIN" -addext "subjectAltName=DNS:$LXC_HOSTNAME.$LXC_DOMAIN" PHP_VERSION=$(php -v | head -1 | cut -d ' ' -f2) diff --git a/src/matrix/install-service.sh b/src/matrix/install-service.sh index 343ac0f..6605ab7 100644 --- a/src/matrix/install-service.sh +++ b/src/matrix/install-service.sh @@ -27,7 +27,7 @@ systemctl enable matrix-synapse ss -tulpen -mkdir /etc/nginx/ssl +mkdir -p /etc/nginx/ssl openssl req -x509 -nodes -days 3650 -newkey rsa:4096 -keyout /etc/nginx/ssl/matrix.key -out /etc/nginx/ssl/matrix.crt -subj "/CN=$MATRIX_FQDN" -addext "subjectAltName=DNS:$MATRIX_FQDN" cat > /etc/nginx/sites-available/$MATRIX_FQDN < /etc/nginx/sites-available/default diff --git a/src/urbackup/install-service.sh b/src/urbackup/install-service.sh index e35ddcf..64e0f34 100644 --- a/src/urbackup/install-service.sh +++ b/src/urbackup/install-service.sh @@ -11,7 +11,7 @@ source /root/constants-service.conf mkdir -p /$LXC_SHAREFS_MOUNTPOINT/tmp mkdir -p /$LXC_SHAREFS_MOUNTPOINT/$URBACKUP_DATA -mkdir /etc/urbackup +mkdir -p /etc/urbackup echo "/$LXC_SHAREFS_MOUNTPOINT/$URBACKUP_DATA" > /etc/urbackup/backupfolder echo "deb http://download.opensuse.org/repositories/home:/uroni/$REPO_CODENAME/ /" | tee /etc/apt/sources.list.d/urbackup.list @@ -20,7 +20,7 @@ curl -fsSL https://download.opensuse.org/repositories/home:uroni/$REPO_CODENAME/ apt update DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt install -y --no-install-recommends -o DPkg::options::="--force-confdef" -o DPkg::options::="--force-confold" urbackup-server nginx -mkdir /etc/nginx/ssl +mkdir -p /etc/nginx/ssl openssl req -x509 -nodes -days 3650 -newkey rsa:4096 -keyout /etc/nginx/ssl/urbackup.key -out /etc/nginx/ssl/urbackup.crt -subj "/CN=$LXC_HOSTNAME.$LXC_DOMAIN" -addext "subjectAltName=DNS:$LXC_HOSTNAME.$LXC_DOMAIN" ln -s /usr/share/urbackup/www /var/www/urbackup diff --git a/src/vaultwarden/install-service.sh b/src/vaultwarden/install-service.sh index bee4f3c..42a7b4e 100644 --- a/src/vaultwarden/install-service.sh +++ b/src/vaultwarden/install-service.sh @@ -18,7 +18,7 @@ systemctl enable --now postgresql wget https://raw.githubusercontent.com/jjlin/docker-image-extract/main/docker-image-extract chmod +x docker-image-extract ./docker-image-extract vaultwarden/server:alpine -mkdir /opt/vaultwarden +mkdir -p /opt/vaultwarden mkdir -p /var/lib/vaultwarden/data useradd vaultwarden chown -R vaultwarden:vaultwarden /var/lib/vaultwarden diff --git a/src/zmb-member/install-service.sh b/src/zmb-member/install-service.sh index 2dd69c3..2932abc 100644 --- a/src/zmb-member/install-service.sh +++ b/src/zmb-member/install-service.sh @@ -98,7 +98,7 @@ systemctl restart winbind nmbd wbinfo -u wbinfo -g -mkdir /$LXC_SHAREFS_MOUNTPOINT/$ZMB_SHARE +mkdir -p /$LXC_SHAREFS_MOUNTPOINT/$ZMB_SHARE # originally 'domain users' was set, added variable for domain admins group, samba wiki recommends separate group e.g. 'unix admins' chown "${ZMB_ADMIN_USER@L}" /$LXC_SHAREFS_MOUNTPOINT/$ZMB_SHARE