File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ if [ -z "${home_dir}" ]; then
5858fi
5959
6060os=$( uname | tr ' [:upper:]' ' [:lower:]' )
61- systemd_status=$( systemctl is-system-running)
61+ systemd_status=$( systemctl is-system-running 2> /dev/null || true )
6262install_dir=" ${home_dir} /${OPENAEV_INSTALL_DIR} -${user} "
6363service_name=" ${user} -${OPENAEV_SERVICE_NAME} "
6464tenant_id=" ${OPENAEV_TENANT_ID} "
7171
7272if [ " $systemd_status " != " running" ] && [ " $systemd_status " != " degraded" ]; then
7373 echo " Systemd is in unexpected state: $systemd_status . Installation is not supported."
74+ echo " Prerequisite: an active systemd system manager is required for service-user mode." >&2
7475 exit 1
7576else
7677 echo " Systemd is in acceptable state: $systemd_status "
Original file line number Diff line number Diff line change 33
44base_url=${OPENAEV_URL}
55architecture=$( uname -m)
6- systemd_status=$( systemctl is-system-running)
6+ systemd_status=$( systemctl is-system-running 2> /dev/null || true )
77
88os=$( uname | tr ' [:upper:]' ' [:lower:]' )
99install_dir=" $HOME /${OPENAEV_INSTALL_DIR} "
2424 echo " Systemd is in acceptable state: $systemd_status "
2525fi
2626
27+ if ! systemctl --user show-environment > /dev/null 2>&1 ; then
28+ echo " Error: systemd user manager is not available in this session." >&2
29+ echo " Prerequisite: an active systemd user manager is required for session-user mode." >&2
30+ exit 1
31+ fi
32+
2733echo " Starting install script for ${os} | ${architecture} "
2834
2935echo " 01. Stopping existing ${session_name} ..."
Original file line number Diff line number Diff line change 33
44base_url=${OPENAEV_URL}
55architecture=$( uname -m)
6- systemd_status=$( systemctl is-system-running)
6+ systemd_status=$( systemctl is-system-running 2> /dev/null || true )
77
88os=$( uname | tr ' [:upper:]' ' [:lower:]' )
99install_dir=" ${OPENAEV_INSTALL_DIR} "
1717
1818if [ " $systemd_status " != " running" ] && [ " $systemd_status " != " degraded" ]; then
1919 echo " Systemd is in unexpected state: $systemd_status . Installation is not supported."
20+ echo " Prerequisite: an active systemd system manager is required for service mode." >&2
2021 exit 1
2122else
2223 echo " Systemd is in acceptable state: $systemd_status "
You can’t perform that action at this time.
0 commit comments