Updating the update script with new Let's Encrypt Issuer
This commit is contained in:
parent
379624f4fb
commit
06cd44142e
@ -45,7 +45,7 @@ elif [ $PWD = "/tmp/tinycheck" ]; then
|
|||||||
service tinycheck-frontend restart
|
service tinycheck-frontend restart
|
||||||
service tinycheck-watchers restart
|
service tinycheck-watchers restart
|
||||||
|
|
||||||
# Updating configuration with new key-val pairs.
|
# Updating configuration with new values.
|
||||||
if ! grep -q reboot_option /usr/share/tinycheck/config.yaml; then
|
if ! grep -q reboot_option /usr/share/tinycheck/config.yaml; then
|
||||||
sed -i 's/frontend:/frontend:\n reboot_option: true/g' /usr/share/tinycheck/config.yaml
|
sed -i 's/frontend:/frontend:\n reboot_option: true/g' /usr/share/tinycheck/config.yaml
|
||||||
fi
|
fi
|
||||||
@ -58,5 +58,9 @@ elif [ $PWD = "/tmp/tinycheck" ]; then
|
|||||||
sed -i 's/frontend:/frontend:\n quit_option: true/g' /usr/share/tinycheck/config.yaml
|
sed -i 's/frontend:/frontend:\n quit_option: true/g' /usr/share/tinycheck/config.yaml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ! grep -q "CN=R3,O=Let's Encrypt,C=US" /usr/share/tinycheck/config.yaml; then
|
||||||
|
sed -i "s/free_issuers:/free_issuers:\n - CN=R3,O=Let's Encrypt,C=US/g" /usr/share/tinycheck/config.yaml
|
||||||
|
fi
|
||||||
|
|
||||||
echo "[+] TinyCheck updated!"
|
echo "[+] TinyCheck updated!"
|
||||||
fi
|
fi
|
Loading…
Reference in New Issue
Block a user