# 11. How to upgrade `acme.sh`
-acme.sh is in constant developement, so it's strongly recommended to use the latest code.
+acme.sh is in constant development, so it's strongly recommended to use the latest code.
You can update acme.sh to the latest code:
fi
_info "JFYI, Config file $httpdconf is backuped to $APACHE_CONF_BACKUP_DIR/$httpdconfname"
_info "In case there is an error that can not be restored automatically, you may try restore it yourself."
- _info "The backup file will be deleted on sucess, just forget it."
+ _info "The backup file will be deleted on success, just forget it."
#add alias
if [ -z "$NO_DETECT_SH" ]; then
#Modify shebang
if _exists bash; then
- _info "Good, bash is found, so change the shebang to use bash as prefered."
+ _info "Good, bash is found, so change the shebang to use bash as preferred."
_shebang='#!/usr/bin/env bash'
_setShebang "$LE_WORKING_DIR/$PROJECT_ENTRY" "$_shebang"
for subf in $_SUB_FOLDERS; do
_clean
}
-#################### Private functions bellow ##################################
+#################### Private functions below ##################################
_get_root() {
domain=$1
_aws_tmpl_xml="<ChangeResourceRecordSetsRequest xmlns=\"https://route53.amazonaws.com/doc/2013-04-01/\"><ChangeBatch><Changes><Change><Action>UPSERT</Action><ResourceRecordSet><Name>$fulldomain</Name><Type>TXT</Type><TTL>300</TTL><ResourceRecords><ResourceRecord><Value>\"$txtvalue\"</Value></ResourceRecord></ResourceRecords></ResourceRecordSet></Change></Changes></ChangeBatch></ChangeResourceRecordSetsRequest>"
if aws_rest POST "2013-04-01$_domain_id/rrset/" "" "$_aws_tmpl_xml" && _contains "$response" "ChangeResourceRecordSetsResponse"; then
- _info "txt record updated sucess."
+ _info "txt record updated success."
return 0
fi
_aws_tmpl_xml="<ChangeResourceRecordSetsRequest xmlns=\"https://route53.amazonaws.com/doc/2013-04-01/\"><ChangeBatch><Changes><Change><Action>DELETE</Action><ResourceRecordSet><ResourceRecords><ResourceRecord><Value>\"$txtvalue\"</Value></ResourceRecord></ResourceRecords><Name>$fulldomain.</Name><Type>TXT</Type><TTL>300</TTL></ResourceRecordSet></Change></Changes></ChangeBatch></ChangeResourceRecordSetsRequest>"
if aws_rest POST "2013-04-01$_domain_id/rrset/" "" "$_aws_tmpl_xml" && _contains "$response" "ChangeResourceRecordSetsResponse"; then
- _info "txt record deleted sucess."
+ _info "txt record deleted success."
return 0
fi
}
-#################### Private functions bellow ##################################
+#################### Private functions below ##################################
_get_root() {
domain=$1
}
-#################### Private functions bellow ##################################
+#################### Private functions below ##################################
#_acme-challenge.www.domain.com
#returns
# _sub_domain=_acme-challenge.www
return 1
}
-#################### Private functions bellow ##################################
+#################### Private functions below ##################################
#_acme-challenge.www.domain.com
#returns
# _sub_domain=_acme-challenge.www
return 1 #error
}
-#################### Private functions bellow ##################################
+#################### Private functions below ##################################
#_acme-challenge.www.domain.com
#returns
# _sub_domain=_acme-challenge.www
}
-#################### Private functions bellow ##################################
+#################### Private functions below ##################################
#_acme-challenge.www.domain.com
#returns
# _sub_domain=_acme-challenge.www
_ISPC_credentials && _ISPC_login && _ISPC_rmTxt
}
-#################### Private functions bellow ##################################
+#################### Private functions below ##################################
_ISPC_credentials() {
if [ -z "${ISPC_User}" ] || [ -z "$ISPC_Password" ] || [ -z "${ISPC_Api}" ] || [ -z "${ISPC_Api_Insecure}" ]; then
}
-#################### Private functions bellow ##################################
+#################### Private functions below ##################################
#_acme-challenge.www.domain.com
#returns
# _sub_domain=_acme-challenge.www
}
-#################### Private functions bellow ##################################
+#################### Private functions below ##################################
#_acme-challenge.www.domain.com
#returns
# _sub_domain=_acme-challenge.www
}
#Usage: fulldomain txtvalue
-#Remove the txt record afer validation.
+#Remove the txt record after validation.
dns_myapi_rm() {
fulldomain=$1
txtvalue=$2
_debug txtvalue "$txtvalue"
}
-#################### Private functions bellow ##################################
+#################### Private functions below ##################################
return 0
}
-#################### Private functions bellow ##################################
+#################### Private functions below ##################################
_checkKeyFile() {
if [ -z "${NSUPDATE_KEY}" ]; then
}
-#################### Private functions bellow ##################################
+#################### Private functions below ##################################
_ovh_authentication() {
return 0
}
-#################### Private functions bellow ##################################
+#################### Private functions below ##################################
#_acme-challenge.www.domain.com
#returns
# _domain=domain.com