summarylogtreecommitdiffstats
path: root/mycroft-core.install
diff options
context:
space:
mode:
authorThorben Günther2018-10-15 16:13:21 +0200
committerThorben Günther2018-10-15 16:13:21 +0200
commita5c240358684a11f155a2f919a9a1b8865880e01 (patch)
tree0bce745f2efc8eef4c5c6d06968dcf58611f4614 /mycroft-core.install
parent11223024ffa307a6dc42ef7c4f33e9bf78e8775c (diff)
downloadaur-a5c240358684a11f155a2f919a9a1b8865880e01.tar.gz
New Version.
Diffstat (limited to 'mycroft-core.install')
-rw-r--r--mycroft-core.install7
1 files changed, 6 insertions, 1 deletions
diff --git a/mycroft-core.install b/mycroft-core.install
index 99e4d453c91a..b747a87aa45f 100644
--- a/mycroft-core.install
+++ b/mycroft-core.install
@@ -7,6 +7,10 @@ post_install() {
sudo -Hu mycroft-core bash -c '/usr/share/mycroft-core/venv_init'
+ # Create Log files
+ mkdir -p /var/log/mycroft
+ chown -R mycroft-core:mycroft-core /var/log/mycroft
+ chmod g+w /var/log/mycroft
echo "*** ATTENTION ***"
echo ""
@@ -29,8 +33,9 @@ post_upgrade() {
}
post_remove() {
- groupdel mycroft-core
userdel mycroft-core
+ groupdel mycroft-core
rm -rf /usr/share/mycroft-core
rm -rf /opt/mycroft
+ rm -rf /var/log/mycroft
}