Browse Source

config panel

ericgaspar 4 years ago
parent
commit
f85245b4eb
2 changed files with 3 additions and 9 deletions
  1. 2 2
      config_panel.toml
  2. 1 7
      scripts/config

+ 2 - 2
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."

+ 1 - 7
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