From 5c147d9841fa0bbbc80fda7b5f19411c9f52821a Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Tue, 22 Jul 2025 12:57:59 +0200 Subject: [PATCH] Update leantime-install.sh --- install/leantime-install.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/install/leantime-install.sh b/install/leantime-install.sh index 026bc2cb..ff358010 100644 --- a/install/leantime-install.sh +++ b/install/leantime-install.sh @@ -35,17 +35,17 @@ fetch_and_deploy_gh_release "leantime" "Leantime/leantime" "prebuild" "latest" " msg_info "Setup ${APPLICATION}" APACHE_LOG_DIR=/var/log/apache2 -chown -R www-data:www-data "/opt/${APPLICATION}" -chmod -R 750 "/opt/${APPLICATION}" +chown -R www-data:www-data "/opt/leantime" +chmod -R 750 "/opt/leantime" cat </etc/apache2/sites-enabled/000-default.conf ServerAdmin webmaster@localhost - DocumentRoot /opt/${APPLICATION}/public + DocumentRoot /opt/leantime/public DirectoryIndex index.php index.html index.cgi index.pl index.xhtml Options +ExecCGI - + Options FollowSymLinks Require all granted AllowOverride All @@ -60,12 +60,12 @@ cat </etc/apache2/sites-enabled/000-default.conf EOF -mv "/opt/${APPLICATION}/config/sample.env" "/opt/${APPLICATION}/config/.env" +mv "/opt/leantime/config/sample.env" "/opt/leantime/config/.env" sed -i -e "s|^LEAN_DB_DATABASE.*|LEAN_DB_DATABASE = '$DB_NAME'|" \ -e "s|^LEAN_DB_USER.*|LEAN_DB_USER = '$DB_USER'|" \ -e "s|^LEAN_DB_PASSWORD.*|LEAN_DB_PASSWORD = '$DB_PASS'|" \ -e "s|^LEAN_SESSION_PASSWORD.*|LEAN_SESSION_PASSWORD = '$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13)'|" \ - "/opt/${APPLICATION}/config/.env" + "/opt/leantime/config/.env" a2enmod -q proxy_fcgi setenvif rewrite a2enconf -q "php${PHP_VERSION}-fpm"