Browse Source

[fix] Root path

ljf 4 years ago
parent
commit
1a00bb8749
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scripts/_common.sh

+ 1 - 1
scripts/_common.sh

@@ -185,7 +185,7 @@ function vpnclient_deploy_files_and_services()
   #=================================================
 
   # Fix sources
-  ynh_replace_string "__PATH__" "${path_url}" "/var/www/${app}/config.php"
+  ynh_replace_string "__PATH__" "${path_url%%/}" "/var/www/${app}/config.php"
 
   # Copy init script
   install -o root -g root -m 0755 ../conf/$service_name /usr/local/bin/