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/adminer.sh
parentf28af0807a6838a53590fa6fe9b7ff91aebae39b (diff)
rework some popups (#1554)
Diffstat (limited to 'apps/adminer.sh')
-rw-r--r--apps/adminer.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/adminer.sh b/apps/adminer.sh
index d5e89ccb..bb728bd4 100644
--- a/apps/adminer.sh
+++ b/apps/adminer.sh
@@ -19,14 +19,16 @@ debug_mode
root_check
# Show explainer
-explainer_popup
+msg_box "$SCRIPT_EXPLAINER"
# Check if adminer is already installed
-print_text_in_color "$ICyan" "Checking if Adminer is already installed..."
-if is_this_installed adminer
+if ! is_this_installed adminer
then
+ # Ask for installing
+ install_popup "$SCRIPT_NAME"
+else
# Ask for removal or reinstallation
- reinstall_remove_menu
+ reinstall_remove_menu "$SCRIPT_NAME"
# Removal
check_external_ip # Check that the script can see the external IP (apache fails otherwise)
a2disconf adminer.conf
@@ -35,9 +37,7 @@ then
check_command apt-get purge adminer -y
restart_webserver
# Show successful uninstall if applicable
- removal_popup
-else
- print_text_in_color "$ICyan" "Installing and securing Adminer..."
+ removal_popup "$SCRIPT_NAME"
fi
# Check that the script can see the external IP (apache fails otherwise)