Closed (fixed)
Project:
Hostmaster (Aegir)
Version:
6.x-2.0-rc5
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
23 Oct 2013 at 18:27 UTC
Updated:
4 Dec 2013 at 19:50 UTC
Jump to comment: Most recent
Workaround:
rm /var/aegir
mkdir /var/aegir
sudo mount -o bind /srv/aegir /var/aegir
Comments
Comment #1
ergonlogicIs this only in the .deb, or are we talking about something in upgrade.sh or hostmaster-migrate?
Comment #2
anarcat commentedanother potential workaround is to change the real root of the aegir install, by changing the home of the aegir user, this seemed to work in another instance here.
Comment #3
ergonlogicIt looks like we're hard-coding the aegir home in aegir2-hostmaster.postinst:
Am I mis-reading that? How could one even go about installing with the .debs using a different home? But, I'm not even sure that matters here...
Comment #4
anarcat commentedi am not sure we can completely fix this in aegir: /var/aegir is managed by the debian package, and while we could mess around and make it created in preinst, that is messy. besides, with the new "distributions-based" system, we are likely to ship the hostmaster source code directly in the debian package, in which case we need to hardcode that path.
still, I have made *some* fix here, by getting the path from the aegir user's $HOME variable. we can review that decision later if we change packaging, but for now the change is localised so it will be easy to change.