Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/vm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorszaimen <szaimen@e.mail.de>2020-10-14 21:03:02 +0300
committerGitHub <noreply@github.com>2020-10-14 21:03:02 +0300
commit6b352abc9049cdc92a5c1b63b5ceefeab6f9c1f7 (patch)
tree665ed6ca9340e351e5fd24d0cdaf97a1f8e5921d /apps/webmin.sh
parentf28af0807a6838a53590fa6fe9b7ff91aebae39b (diff)
rework some popups (#1554)
Diffstat (limited to 'apps/webmin.sh')
-rw-r--r--apps/webmin.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/webmin.sh b/apps/webmin.sh
index 1040602d..572a9107 100644
--- a/apps/webmin.sh
+++ b/apps/webmin.sh
@@ -24,21 +24,21 @@ debug_mode
root_check
# Show explainer
-explainer_popup
+msg_box "$SCRIPT_EXPLAINER"
# Check if webmin is already installed
-print_text_in_color "$ICyan" "Checking if Webmin is already installed..."
-if is_this_installed webmin
+if ! is_this_installed webmin
then
+ # Ask for installing
+ install_popup "$SCRIPT_NAME"
+else
# Ask for removal or reinstallation
- reinstall_remove_menu
+ reinstall_remove_menu "$SCRIPT_NAME"
# Removal
check_command apt-get purge webmin -y
rm -rf /etc/apt/sources.list.d/webmin.list
# Show successful uninstall if applicable
- removal_popup
-else
- print_text_in_color "$ICyan" "Installing Webmin..."
+ removal_popup "$SCRIPT_NAME"
fi
# Install packages for Webmin