From ad182b52b76965da717d766be2341db399840a70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Fri, 24 Nov 2023 12:45:03 +0100 Subject: [PATCH] Fix install --- scripts/install | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index e88b16d..f11ee9e 100644 --- a/scripts/install +++ b/scripts/install @@ -53,17 +53,20 @@ ynh_script_progression --message="Configuring application..." --weight=3 # Run install script set_permission +ynh_replace_special_string --match_string 'seafile_config.seafile_dir = seafile_config.validate_seafile_dir(seafile_dir)' \ + --replace_string 'seafile_config.seafile_dir = seafile_dir' \ + --target_file $install_dir/seafile-server-$seafile_version/setup-seafile-mysql.py sudo -u $YNH_APP_ID bash $install_dir/seafile-server-$seafile_version/setup-seafile-mysql.sh auto \ --server-name "$server_name" \ --server-ip $domain \ --fileserver-port $port_fileserver \ - --use-existing-db 0 \ + --use-existing-db 1 \ --mysql-host localhost \ --mysql-port 3306 \ --mysql-user $db_user \ --mysql-user-passwd "$db_pwd" \ --seafile-db "$db_name" \ - --seafile-db ccnetdb \ + --ccnet-db ccnetdb \ --seahub-db seahubdb # Retrive values from auto generated config file