From 22f9bfbfa16f2f199a41f9bb145275de16c96e95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristhian=20Mart=C3=ADnez=20Ochoa?= Date: Sun, 25 Feb 2018 17:49:57 -0700 Subject: [PATCH] php install with force php installation now acepts force option for unattended scripts, to avoid nginx question. --- plugins/stack | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/stack b/plugins/stack index 5bb902a..ca24a46 100644 --- a/plugins/stack +++ b/plugins/stack @@ -18,14 +18,13 @@ fi # FORCE - Unattended Purge clear_force_flag() { - if [[ $(conf_read delall) == "true" ]]; then - conf_delete delall - fi + [[ $(conf_read delall) == "true" ]] && conf_delete delall } -if [[ $arg == "-purge=force" || $opt == "-purge-server-all=force" ]]; then +if [[ $arg == "-purge=force" || $opt == "-purge-server-all=force" || $opt == "-php=force" ]]; then conf_write delall true [[ $arg == "-purge=force" ]] && arg="-purge" [[ $opt == "-purge-server-all=force" ]] && opt="-purge-server-all" + [[ $opt == "-php=force" ]] && opt="-php" force="1" fi