@@ -5906,16 +5906,19 @@ install() {
5906
5906
LE_WORKING_DIR=" $DEFAULT_INSTALL_HOME "
5907
5907
fi
5908
5908
5909
- _nocron=" $1 "
5909
+ _nocron=" ${NOCRON :- $1 } "
5910
5910
_c_home=" $2 "
5911
- _noprofile=" $3 "
5911
+ _noprofile=" ${NOPROFILE :- $3 } "
5912
5912
if ! _initpath; then
5913
5913
_err " Install failed."
5914
5914
return 1
5915
5915
fi
5916
5916
if [ " $_nocron " ]; then
5917
5917
_debug " Skip install cron job"
5918
5918
fi
5919
+ if [ " $_noprofile " ]; then
5920
+ _debug " Skip install aliases"
5921
+ fi
5919
5922
5920
5923
if [ " $ACME_IN_CRON " != " 1" ]; then
5921
5924
if ! _precheck " $_nocron " ; then
@@ -6335,8 +6338,23 @@ Parameters:
6335
6338
# nocron noprofile
6336
6339
_installOnline () {
6337
6340
_info " Installing from online archive."
6338
- _nocron=" $1 "
6339
- _noprofile=" $2 "
6341
+
6342
+ if ! _startswith " $1 " " -" ; then
6343
+ if [ -n " $1 " ]; then
6344
+ set " $@ " " --nocron"
6345
+ fi
6346
+
6347
+ shift
6348
+
6349
+ if ! _startswith " $1 " " -" ; then
6350
+ if [ -n " $1 " ]; then
6351
+ set " $@ " " --noprofile"
6352
+ fi
6353
+
6354
+ shift
6355
+ fi
6356
+ fi
6357
+
6340
6358
if [ ! " $BRANCH " ]; then
6341
6359
BRANCH=" master"
6342
6360
fi
@@ -6357,7 +6375,7 @@ _installOnline() {
6357
6375
6358
6376
cd " $PROJECT_NAME -$BRANCH "
6359
6377
chmod +x $PROJECT_ENTRY
6360
- if ./$PROJECT_ENTRY install " $_nocron " " " " $_noprofile " ; then
6378
+ if ./$PROJECT_ENTRY -- install " $@ " ; then
6361
6379
_info " Install success!"
6362
6380
_initpath
6363
6381
_saveaccountconf " UPGRADE_HASH" " $( _getUpgradeHash) "
@@ -6393,7 +6411,7 @@ upgrade() {
6393
6411
[ -z " $FORCE " ] && [ " $( _getUpgradeHash) " = " $( _readaccountconf " UPGRADE_HASH" ) " ] && _info " Already uptodate!" && exit 0
6394
6412
export LE_WORKING_DIR
6395
6413
cd " $LE_WORKING_DIR "
6396
- _installOnline " nocron" " noprofile"
6414
+ _installOnline " nocron" " " " noprofile"
6397
6415
); then
6398
6416
_info " Upgrade success!"
6399
6417
exit 0
@@ -7163,7 +7181,7 @@ _process() {
7163
7181
7164
7182
if [ " $INSTALLONLINE " ]; then
7165
7183
INSTALLONLINE=" "
7166
- _installOnline
7184
+ _installOnline " $@ "
7167
7185
exit
7168
7186
fi
7169
7187
0 commit comments