Browse Source

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 <simon.ensslen@griesser.ch>
1.2.x
Simon Ensslen 6 years ago
committed by chensi1
parent
commit
c6fea78bbe
  1. 11
      convert-stage-4.sh

11
convert-stage-4.sh

@ -154,8 +154,11 @@ install_files() {
fi fi
# Enable menderd service starting on boot. # Enable menderd service starting on boot.
sudo ln -sf /lib/systemd/system/mender.service \ if [ -z "${standalone_operation}" ]; then
${primary_dir}/etc/systemd/system/multi-user.target.wants/mender.service # 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 # 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

Loading…
Cancel
Save