Laudende Default seite entfernen

main
boksbc 2025-10-16 13:29:20 +02:00
parent 21084616cb
commit 8da4338a1e
4 changed files with 12 additions and 5 deletions

View File

@ -2,6 +2,9 @@
set -euo pipefail
source ./lib.sh
SCRIPTS_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
find "$SCRIPTS_DIR/.." -type f -name "*.sh" -exec sed -i 's/\r$//' {} \; || true
log "Pakete installieren …"
export DEBIAN_FRONTEND=noninteractive
apt-get update -y

View File

@ -166,7 +166,7 @@ sudo -u "$APP_USER" -H bash -lc "cd ${APP_DIR} && php artisan migrate --force"
# System-Domain seeden, wenn eine echte Domain gesetzt wurde
if [[ "${BASE_DOMAIN}" != "example.com" ]]; then
sudo -u "$APP_USER" -H bash -lc "cd ${APP_DIR} && php artisan db:seed --class=SystemDomainSeeder --no-interaction || true"
sudo -u "$APP_USER" -H bash -lc "cd ${APP_DIR} && php artisan db:seed --class=SystemDomainSeeder --force"
fi
sudo -u "$APP_USER" -H bash -lc "cd ${APP_DIR} && php artisan config:cache"

View File

@ -2,9 +2,9 @@
set -euo pipefail
source ./lib.sh
log(){ printf "\033[1;32m[+]\033[0m %s\n" "$*"; }
ok(){ printf " [\033[1;32mOK\033[0m]\n"; }
fail(){printf " [\033[1;31mFAIL\033[0m]\n"; }
log() { printf "\033[1;32m[+]\033[0m %s\n" "$*"; }
ok() { printf " [\033[1;32mOK\033[0m]\n"; }
fail() { printf " [\033[1;31mFAIL\033[0m]\n"; }
APP_USER="${APP_USER:-mailwolt}"
APP_GROUP="${APP_GROUP:-www-data}"

View File

@ -1,7 +1,11 @@
#!/usr/bin/env bash
set -euo pipefail
[ -f /etc/mailwolt/installer.env ] && . /etc/mailwolt/installer.env
if [ -f /etc/mailwolt/installer.env ]; then
set -a
. /etc/mailwolt/installer.env
set +a
fi
# ── Styling ────────────────────────────────────────────────────────────────
GREEN="$(printf '\033[1;32m')"; YELLOW="$(printf '\033[1;33m')"
RED="$(printf '\033[1;31m')"; CYAN="$(printf '\033[1;36m')"