From f85245b4ebbcf741a0393f621c5106797407e355 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 23 Nov 2021 23:04:56 +0100 Subject: [PATCH] config panel --- config_panel.toml | 4 ++-- scripts/config | 8 +------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/config_panel.toml b/config_panel.toml index d8518a1..421908b 100644 --- a/config_panel.toml +++ b/config_panel.toml @@ -1,4 +1,4 @@ -version = "0.1" +version = "1.0" name = "PiHole configuration panel" [main] @@ -26,7 +26,7 @@ name = "PiHole configuration" help = "If the file is overwritten, a backup will be created." [main.overwrite_files.overwrite_phpfpm] - ask = "Overwrite the php-fpm config file?" + ask = "Overwrite the PHP-FPM config file?" type = "boolean" default = true help = "If the file is overwritten, a backup will be created." diff --git a/scripts/config b/scripts/config index fef8388..9a37a8d 100644 --- a/scripts/config +++ b/scripts/config @@ -165,10 +165,4 @@ apply_config() { #================================================= # GENERIC FINALIZATION #================================================= -# SELECT THE ACTION FOLLOWING THE GIVEN ARGUMENT -#================================================= - -case $1 in - show) show_config;; - apply) apply_config;; -esac +ynh_app_config_run $1