fix on
This commit is contained in:
parent
86994a03b0
commit
fc9a151ee5
23
acme.sh
23
acme.sh
@ -6571,23 +6571,10 @@ Parameters:
|
|||||||
# nocron noprofile branch
|
# nocron noprofile branch
|
||||||
installOnline() {
|
installOnline() {
|
||||||
_info "Installing from online archive."
|
_info "Installing from online archive."
|
||||||
_nocron="$1"
|
|
||||||
if [ "$_nocron" ]; then
|
|
||||||
_nocron="--nocron"
|
|
||||||
shift
|
|
||||||
fi
|
|
||||||
|
|
||||||
_noprofile="$1"
|
_branch="$BRANCH"
|
||||||
if [ "$_noprofile" ]; then
|
|
||||||
_noprofile="--noprofile"
|
|
||||||
shift
|
|
||||||
fi
|
|
||||||
|
|
||||||
_branch="$1"
|
|
||||||
if [ -z "$_branch" ]; then
|
if [ -z "$_branch" ]; then
|
||||||
_branch="master"
|
_branch="master"
|
||||||
else
|
|
||||||
shift
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
target="$PROJECT/archive/$_branch.tar.gz"
|
target="$PROJECT/archive/$_branch.tar.gz"
|
||||||
@ -6606,7 +6593,7 @@ installOnline() {
|
|||||||
|
|
||||||
cd "$PROJECT_NAME-$_branch"
|
cd "$PROJECT_NAME-$_branch"
|
||||||
chmod +x $PROJECT_ENTRY
|
chmod +x $PROJECT_ENTRY
|
||||||
if ./$PROJECT_ENTRY --install $_nocron $_noprofile $@; then
|
if ./$PROJECT_ENTRY --install "$@"; then
|
||||||
_info "Install success!"
|
_info "Install success!"
|
||||||
_initpath
|
_initpath
|
||||||
_saveaccountconf "UPGRADE_HASH" "$(_getUpgradeHash)"
|
_saveaccountconf "UPGRADE_HASH" "$(_getUpgradeHash)"
|
||||||
@ -6642,7 +6629,7 @@ upgrade() {
|
|||||||
[ -z "$FORCE" ] && [ "$(_getUpgradeHash)" = "$(_readaccountconf "UPGRADE_HASH")" ] && _info "Already uptodate!" && exit 0
|
[ -z "$FORCE" ] && [ "$(_getUpgradeHash)" = "$(_readaccountconf "UPGRADE_HASH")" ] && _info "Already uptodate!" && exit 0
|
||||||
export LE_WORKING_DIR
|
export LE_WORKING_DIR
|
||||||
cd "$LE_WORKING_DIR"
|
cd "$LE_WORKING_DIR"
|
||||||
installOnline "nocron" "noprofile"
|
installOnline "--nocron" "--noprofile"
|
||||||
); then
|
); then
|
||||||
_info "Upgrade success!"
|
_info "Upgrade success!"
|
||||||
exit 0
|
exit 0
|
||||||
@ -6823,7 +6810,8 @@ _process() {
|
|||||||
_CMD="install"
|
_CMD="install"
|
||||||
;;
|
;;
|
||||||
--install-online)
|
--install-online)
|
||||||
_CMD="installonline"
|
installOnline "$@"
|
||||||
|
return
|
||||||
;;
|
;;
|
||||||
--uninstall)
|
--uninstall)
|
||||||
_CMD="uninstall"
|
_CMD="uninstall"
|
||||||
@ -7368,7 +7356,6 @@ _process() {
|
|||||||
_debug "Running cmd: ${_CMD}"
|
_debug "Running cmd: ${_CMD}"
|
||||||
case "${_CMD}" in
|
case "${_CMD}" in
|
||||||
install) install "$_nocron" "$_confighome" "$_noprofile" "$_accountemail" ;;
|
install) install "$_nocron" "$_confighome" "$_noprofile" "$_accountemail" ;;
|
||||||
installonline) installOnline "$_nocron" "$_noprofile" "$BRANCH" ;;
|
|
||||||
uninstall) uninstall "$_nocron" ;;
|
uninstall) uninstall "$_nocron" ;;
|
||||||
upgrade) upgrade ;;
|
upgrade) upgrade ;;
|
||||||
issue)
|
issue)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user