maas-run-remote-scripts is executed by cloud-init, which is executed by systemd. Your shell normally sets $HOME as well as other environment variables. Since no process is started by a shell $HOME is never defined. We could either set $HOME manually in maas-run-remote-scripts or execute all scripts through bash.
maas-run- remote- scripts is executed by cloud-init, which is executed by systemd. Your shell normally sets $HOME as well as other environment variables. Since no process is started by a shell $HOME is never defined. We could either set $HOME manually in maas-run- remote- scripts or execute all scripts through bash.