From c6fea78bbef4f5b616688713235b0572c7a8f2f8 Mon Sep 17 00:00:00 2001 From: Simon Ensslen Date: Tue, 18 Jun 2019 13:12:39 +0200 Subject: [PATCH] mender-convert needs option to build without server Changelog: Implement feature MEN-2590 (mender-convert needs option to build without server) Signed-off-by: Simon Ensslen --- convert-stage-4.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/convert-stage-4.sh b/convert-stage-4.sh index 5aa323e..bbc17cf 100755 --- a/convert-stage-4.sh +++ b/convert-stage-4.sh @@ -154,8 +154,11 @@ install_files() { fi # Enable menderd service starting on boot. - sudo ln -sf /lib/systemd/system/mender.service \ - ${primary_dir}/etc/systemd/system/multi-user.target.wants/mender.service + if [ -z "${standalone_operation}" ]; then + # Enable menderd service starting on boot. + sudo ln -sf /lib/systemd/system/mender.service \ + ${primary_dir}/etc/systemd/system/multi-user.target.wants/mender.service + fi # By default production settings configuration is installed if [ -n "${demo}" ] && [ ${demo} -eq 1 ]; then @@ -212,8 +215,8 @@ do_install_mender() { if [ -z "${server_url}" ] && [ -z "${demo_host_ip}" ] && \ [ -z "${tenant_token}" ]; then - log "No server type specified. Aborting." - show_help + log "No Mender server configuration was provided, it will only be possible to update using standalone mode." + standalone_operation="true" fi if [ -n "${server_url}" ] && [ -n "${demo_host_ip}" ]; then