diff options
author | TF | 2022-01-11 12:46:14 +0100 |
---|---|---|
committer | TF | 2022-01-11 14:20:58 +0100 |
commit | aa54cf2d659198dddc81ac58ecbaae2234d1acd1 (patch) | |
tree | 944436a0cd29bcc0341d6ba6b3447542e8244bd5 /kesl-gui.install | |
parent | a4ed67787cb156695118dbc5579e5fd66ff52806 (diff) | |
download | aur-aa54cf2d659198dddc81ac58ecbaae2234d1acd1.tar.gz |
kesl|kesl-gui: preserve config, autostart update
- start update task in background after configuration
- restore previous configuration if found (upgrade)
- restore previous configuration if found (new install)
- allow to set persistent configuration which have precedence always
Signed-off-by: TF <mail@sedi.one>
Diffstat (limited to 'kesl-gui.install')
-rw-r--r-- | kesl-gui.install | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/kesl-gui.install b/kesl-gui.install index 4c87316b9dd5..afa57eab59ef 100644 --- a/kesl-gui.install +++ b/kesl-gui.install @@ -10,6 +10,13 @@ remove_tmp(){ [ -d "$KTMP" ] && rm -rf "$KTMP" } +kesl_updatedb(){ + # upgrading the database can take a LONG time while any other pacman + # jobs would wait until this has been finished. so we start the process but without progress (i.e. running in background) + kesl-control --start-task Update + echo -e "\n\n\e[93m\e[1mThe AV database update has been started in the background.\nCheck the GUI or watch the progress on the CLI with the following command:\e[0m\nkesl-control --get-task-state Update\n\n\e[93m\e[1mkesl will be fully operational first when this update has been finished\n(especially on new installation this will take a very long time)\e[0m\n\n" +} + post_install(){ #echo $FUNCNAME KTMP=$(create_tmp) @@ -20,6 +27,8 @@ post_install(){ cp /var/opt/kaspersky/kesl/pkgscripts/kesl.ini $KTMP/ sed -i "s/@YOU@/$SUDO_USER/g" $KTMP/kesl.ini /opt/kaspersky/kesl/bin/kesl-setup.pl --autoinstall=$KTMP/kesl.ini + + kesl_updatedb remove_tmp "$KTMP" } |