Missing 'get'

This commit is contained in:
Alexandre Aubin 2018-10-25 20:27:24 +00:00
parent 68906a1e98
commit 7b6bf6f4b8

View file

@ -14,7 +14,7 @@ do_pre_regen() {
|| sed -i "s/ListenAddress ::/#ListenAddress ::/g" sshd_config
# Add DSA HostKey to let user remove it with migration 7
if [[ "$(yunohost settings 'service.ssh._deprecated_dsa_hostkey')" == "True" ]]; then
if [[ "$(yunohost settings get 'service.ssh._deprecated_dsa_hostkey')" == "True" ]]; then
sed -i '/HostKey \/etc\/ssh\/ssh_host_rsa_key/a HostKey /etc/ssh/ssh_host_dsa_key' sshd_config
fi