Mercurial > sat_docs
comparison docker/base/Dockerfile @ 117:834bedf42332
docker (base): create sat.conf in ~sat/.config/sat with right permissions so it is not created by set_account_domain
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 08 Mar 2016 13:52:11 +0100 |
parents | 8b228fd053bc |
children | 5d2eb2f61dc8 |
comparison
equal
deleted
inserted
replaced
116:d0a5db5b9bdf | 117:834bedf42332 |
---|---|
83 | 83 |
84 # we want .pid files in /tmp so they are removed if container are deleted | 84 # we want .pid files in /tmp so they are removed if container are deleted |
85 echo '[DEFAULT]\npid_dir=/tmp\n\n\ | 85 echo '[DEFAULT]\npid_dir=/tmp\n\n\ |
86 # we auto-create libervia account if it doesn't exists in Libervia container | 86 # we auto-create libervia account if it doesn't exists in Libervia container |
87 # so we remove it from reserved_list in plugin account | 87 # so we remove it from reserved_list in plugin account |
88 [plugin account]\nreserved_list=' >> /etc/sat.conf | 88 [plugin account]\nreserved_list=' >> /etc/sat.conf && \ |
89 | |
90 # we create a sat.conf in sat user's XDG directory | |
91 # else it would be created by set_account_domain with root only permissions | |
92 mkdir -p /home/sat/.config/sat && touch /home/sat/.config/sat/sat.conf && \ | |
93 chown -R sat:sat /home/sat/.config && chmod 0700 /home/sat/.config/sat && \ | |
94 chmod 0600 /home/sat/.config/sat/sat.conf | |
89 | 95 |
90 ########## | 96 ########## |
91 # LAUNCH # | 97 # LAUNCH # |
92 ########## | 98 ########## |
93 | 99 |