php install with force

php installation now acepts force option for unattended scripts, to avoid nginx question.
This commit is contained in:
Cristhian Martínez Ochoa 2018-02-25 17:49:57 -07:00
parent 63e7c70486
commit 22f9bfbfa1

View file

@ -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