From 3155d10b517d798b17993b95e284665937524126 Mon Sep 17 00:00:00 2001 From: David Young Date: Sat, 11 Apr 2026 06:51:32 -0600 Subject: [PATCH] fixing cloudlog --- install.sh | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index b3293f1..56f04b6 100755 --- a/install.sh +++ b/install.sh @@ -159,8 +159,10 @@ CLOUDLOG_DB="cloudlog" CLOUDLOG_DB_USER="cloudlog" CLOUDLOG_DB_PASS="cloudlog" -if [ ! -d "$CLOUDLOG_DIR" ]; then +install_cloudlog() { + local reinstall="${1:-false}" echo "Installing Cloudlog..." + sudo rm -rf "$CLOUDLOG_DIR" sudo git clone https://github.com/magicbug/Cloudlog.git "$CLOUDLOG_DIR" # Set ownership and permissions (Arch Apache runs as 'http') @@ -169,17 +171,36 @@ if [ ! -d "$CLOUDLOG_DIR" ]; then # Create MariaDB database and user echo "Creating Cloudlog database..." - sudo mariadb -u root <