From 33f40f7f1f1fadf54a635d733e4dd46e162d24f0 Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Thu, 30 May 2019 00:31:13 +0200 Subject: [PATCH] And in install script... --- scripts/install | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/scripts/install b/scripts/install index 0bddbc2..47c9ff7 100644 --- a/scripts/install +++ b/scripts/install @@ -157,11 +157,7 @@ cp ../conf/data/domains/default.ini "$final_path/app/data/_data_/_default_/domai cp ../sources/sso/sso.php "$final_path/index.php" ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="$final_path/index.php" ynh_replace_string --match_string="__ALIASTOCHANGE__" --replace_string="$final_path" --target_file="$final_path/index.php" -if [ "$path_url" = "/" ]; then - ynh_replace_string --match_string="__ROOTTOCHANGE__" --replace_string="" --target_file="$final_path/index.php" -else - ynh_replace_string --match_string="__ROOTTOCHANGE__" --replace_string="$path_url" --target_file="$final_path/index.php" -fi +ynh_replace_string --match_string="__ROOTTOCHANGE__" --replace_string="${path_url%/}" --target_file="$final_path/index.php" # Install PGPback by chtixof to allow users to backup/restore their PGP private keys on the server cp -rf ../sources/pgpback "$final_path/"