mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 19:02:52 +02:00
Adding root certbot-auto to modification check
This commit is contained in:
@@ -3,19 +3,33 @@
|
|||||||
temp_dir=`mktemp -d`
|
temp_dir=`mktemp -d`
|
||||||
|
|
||||||
# Script should be run from Certbot's root directory
|
# Script should be run from Certbot's root directory
|
||||||
cp letsencrypt-auto ${temp_dir}/to-be-checked
|
cp letsencrypt-auto ${temp_dir}/letsencrypt-to-be-checked
|
||||||
|
cp certbot-auto ${temp_dir}/certbot-to-be-checked
|
||||||
|
|
||||||
cp letsencrypt-auto-source/pieces/fetch.py ${temp_dir}/fetch.py
|
cp letsencrypt-auto-source/pieces/fetch.py ${temp_dir}/fetch.py
|
||||||
cd ${temp_dir}
|
cd ${temp_dir}
|
||||||
|
|
||||||
LATEST_VERSION=`python fetch.py --latest-version`
|
LATEST_VERSION=`python fetch.py --latest-version`
|
||||||
python fetch.py --le-auto-script v${LATEST_VERSION}
|
python fetch.py --le-auto-script v${LATEST_VERSION}
|
||||||
|
|
||||||
cmp -s letsencrypt-auto to-be-checked
|
cmp -s letsencrypt-auto letsencrypt-to-be-checked
|
||||||
|
|
||||||
if [ $? != 0 ]; then
|
if [ $? != 0 ]; then
|
||||||
echo "Root letsencrypt-auto has changed."
|
echo "Root letsencrypt-auto has changed."
|
||||||
rm -rf temp_dir
|
rm -rf temp_dir
|
||||||
exit 1
|
exit 1
|
||||||
|
else
|
||||||
|
echo "Root letsencrypt-auto is unchanged."
|
||||||
|
fi
|
||||||
|
|
||||||
|
cmp -s letsencrypt-auto certbot-to-be-checked
|
||||||
|
|
||||||
|
if [ $? != 0 ]; then
|
||||||
|
echo "Root certbot-auto has changed."
|
||||||
|
rm -rf temp_dir
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "Root certbot-auto is unchanged."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -rf temp_dir
|
rm -rf temp_dir
|
||||||
|
|||||||
Reference in New Issue
Block a user