|
@ -153,9 +153,12 @@ install_files() { |
|
|
sudo install -m 0755 ${mender_client} ${primary_dir}/${bindir}/mender |
|
|
sudo install -m 0755 ${mender_client} ${primary_dir}/${bindir}/mender |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
# Enable menderd service starting on boot. |
|
|
|
|
|
if [ -z "${standalone_operation}" ]; then |
|
|
# Enable menderd service starting on boot. |
|
|
# Enable menderd service starting on boot. |
|
|
sudo ln -sf /lib/systemd/system/mender.service \ |
|
|
sudo ln -sf /lib/systemd/system/mender.service \ |
|
|
${primary_dir}/etc/systemd/system/multi-user.target.wants/mender.service |
|
|
${primary_dir}/etc/systemd/system/multi-user.target.wants/mender.service |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
# By default production settings configuration is installed |
|
|
# By default production settings configuration is installed |
|
|
if [ -n "${demo}" ] && [ ${demo} -eq 1 ]; then |
|
|
if [ -n "${demo}" ] && [ ${demo} -eq 1 ]; then |
|
@ -212,8 +215,8 @@ do_install_mender() { |
|
|
|
|
|
|
|
|
if [ -z "${server_url}" ] && [ -z "${demo_host_ip}" ] && \ |
|
|
if [ -z "${server_url}" ] && [ -z "${demo_host_ip}" ] && \ |
|
|
[ -z "${tenant_token}" ]; then |
|
|
[ -z "${tenant_token}" ]; then |
|
|
log "No server type specified. Aborting." |
|
|
log "No Mender server configuration was provided, it will only be possible to update using standalone mode." |
|
|
show_help |
|
|
standalone_operation="true" |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
if [ -n "${server_url}" ] && [ -n "${demo_host_ip}" ]; then |
|
|
if [ -n "${server_url}" ] && [ -n "${demo_host_ip}" ]; then |
|
|