php install with force
php installation now acepts force option for unattended scripts, to avoid nginx question.
This commit is contained in:
parent
63e7c70486
commit
22f9bfbfa1
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue