diff --git a/scripts/install b/scripts/install index 8d254b7..05612cf 100755 --- a/scripts/install +++ b/scripts/install @@ -136,10 +136,8 @@ ynh_replace_string --match_string="https://ajax.googleapis.com/ajax/libs/jquery/ # ADD HASTE AS A BINARY FILE #================================================= -ynh_replace_string --match_string="__HASTE_URL__" --replace_string="${domain}${path_url%/}" --target_file="../conf/haste.sh" -ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="../conf/haste.sh" - -cp ../conf/haste.sh /usr/bin/$app +haste_url="${domain}${path_url}" +ynh_add_config --template="../conf/haste.sh" --destination="/usr/bin/$app" #================================================= # GENERIC FINALIZATION