mirror of
				https://github.com/hiskang/acme.sh
				synced 2025-10-31 02:17:18 +00:00 
			
		
		
		
	add --days only valid for -issue command.
				
					
				
			This commit is contained in:
		
							parent
							
								
									b5eb4b904e
								
							
						
					
					
						commit
						0662507116
					
				| @ -150,7 +150,8 @@ Parameters: | |||||||
|   --home                            Specifies the home dir for acme.sh . |   --home                            Specifies the home dir for acme.sh . | ||||||
|   --useragent                       Specifies the user agent string. it will be saved for future use too. |   --useragent                       Specifies the user agent string. it will be saved for future use too. | ||||||
|   --accountemail                    Specifies the account email for registering, Only valid for the '--install' command. |   --accountemail                    Specifies the account email for registering, Only valid for the '--install' command. | ||||||
|   --accountkey                      Specifyes the account key path, Only valid for the '--install' command. |   --accountkey                      Specifies the account key path, Only valid for the '--install' command. | ||||||
|  |   --days                            Specifies the days to renew the cert when using '--issue' command. The max value is 80 days. | ||||||
| 
 | 
 | ||||||
| ``` | ``` | ||||||
|   |   | ||||||
|  | |||||||
							
								
								
									
										10
									
								
								acme.sh
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								acme.sh
									
									
									
									
									
								
							| @ -1366,7 +1366,7 @@ issue() { | |||||||
|   Le_CertCreateTimeStr=$(date -u ) |   Le_CertCreateTimeStr=$(date -u ) | ||||||
|   _setopt "$DOMAIN_CONF"  "Le_CertCreateTimeStr"  "="  "\"$Le_CertCreateTimeStr\"" |   _setopt "$DOMAIN_CONF"  "Le_CertCreateTimeStr"  "="  "\"$Le_CertCreateTimeStr\"" | ||||||
|    |    | ||||||
|   if [[ ! "$Le_RenewalDays" ]] ; then |   if [[ -z "$Le_RenewalDays" ]] || [[ "$Le_RenewalDays" -lt "0" ]] || [[ "$Le_RenewalDays" -gt "80" ]] ; then | ||||||
|     Le_RenewalDays=80 |     Le_RenewalDays=80 | ||||||
|   fi |   fi | ||||||
|    |    | ||||||
| @ -1895,7 +1895,8 @@ Parameters: | |||||||
|   --home                            Specifies the home dir for $PROJECT_NAME . |   --home                            Specifies the home dir for $PROJECT_NAME . | ||||||
|   --useragent                       Specifies the user agent string. it will be saved for future use too. |   --useragent                       Specifies the user agent string. it will be saved for future use too. | ||||||
|   --accountemail                    Specifies the account email for registering, Only valid for the '--install' command. |   --accountemail                    Specifies the account email for registering, Only valid for the '--install' command. | ||||||
|   --accountkey                      Specifyes the account key path, Only valid for the '--install' command. |   --accountkey                      Specifies the account key path, Only valid for the '--install' command. | ||||||
|  |   --days                            Specifies the days to renew the cert when using '--issue' command. The max value is 80 days. | ||||||
|    |    | ||||||
|   " |   " | ||||||
| } | } | ||||||
| @ -2128,6 +2129,11 @@ _process() { | |||||||
|         ACCOUNT_KEY_PATH="$_accountkey" |         ACCOUNT_KEY_PATH="$_accountkey" | ||||||
|         shift |         shift | ||||||
|         ;; |         ;; | ||||||
|  |     --days ) | ||||||
|  |         _days="$2" | ||||||
|  |         Le_RenewalDays="$_days" | ||||||
|  |         shift | ||||||
|  |         ;; | ||||||
|     *) |     *) | ||||||
|         _err "Unknown parameter : $1" |         _err "Unknown parameter : $1" | ||||||
|         return 1 |         return 1 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user