File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ main()
131
131
_pip_dns=" certbot-dns-${_dns} "
132
132
if [ " ${_dns} " != " cloudflare" ]; then
133
133
echo " [INFO]: Installing certbot DNS plugin -> ${_dns} ..."
134
- pip install --timeout 60 --no-cache-dir " ${_pip_dns} " || exit 2
134
+ pip install --timeout 60 --no-cache-dir --root-user-action ignore " ${_pip_dns} " || exit 2
135
135
pip cache purge || exit 2
136
136
echo -e " [OK]: Done.\n"
137
137
fi
@@ -159,7 +159,7 @@ main()
159
159
done
160
160
161
161
echo " [INFO]: Upgrading certbot..."
162
- pip install --timeout 60 --no-cache-dir --upgrade certbot || exit 2
162
+ pip install --timeout 60 --no-cache-dir --root-user-action ignore -- upgrade certbot || exit 2
163
163
pip cache purge || exit 2
164
164
echo -e " [OK]: Done.\n"
165
165
@@ -174,7 +174,7 @@ main()
174
174
175
175
if [ ${_disable_renew} != true ]; then
176
176
echo " [INFO]: Adding cron jobs..."
177
- echo -e " \n0 1 1 * * root /usr/local/bin/pip install --timeout 60 --no-cache-dir --upgrade certbot ${_pip_dns} >> /var/log/cron.pip.log 2>&1" >> /etc/crontab || exit 2
177
+ echo -e " \n0 1 1 * * root /usr/local/bin/pip install --timeout 60 --no-cache-dir --root-user-action ignore -- upgrade certbot ${_pip_dns} >> /var/log/cron.pip.log 2>&1" >> /etc/crontab || exit 2
178
178
echo " 0 2 * * 1 root /usr/local/bin/python -c 'import random; import time; time.sleep(random.random() * 3600)' && certbot renew -n --keep --max-log-backups 10 --deploy-hook '/usr/local/bin/certbot-deploy-hook.sh' ${_certbot_staging} ${_certbot_renew} >> /var/log/cron.certbot.log 2>&1 && /usr/local/bin/certbot-permissions.sh" >> /etc/crontab || exit 2
179
179
echo -e " [OK]: Done.\n"
180
180
You can’t perform that action at this time.
0 commit comments