-
Notifications
You must be signed in to change notification settings - Fork 116
Open
Description
unlike kalite, the kolibri script does not set the HOME directory so content goes into the .kolibri directory of the user (root)
root@iiab-me-new:~# cat /usr/bin/kalite
#!/bin/bash
KALITE_HOME=/library/ka-lite
export KALITE_HOME
/usr/local/kalite/venv/bin/kalite $@
root@iiab-kolibri:~# cat /usr/bin/kolibri
#!/usr/bin/python3
# EASY-INSTALL-ENTRY-SCRIPT: 'kolibri==0.15.12','console_scripts','kolibri'
__requires__ = 'kolibri==0.15.12'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
load_entry_point('kolibri==0.15.12', 'console_scripts', 'kolibri')()
)
The kolibri service sets:
Environment=KOLIBRI_USER=kolibri
Environment=KOLIBRI_HOME=/library/kolibri
Environment=KOLIBRI_HTTP_PORT=8009
Environment=KOLIBRI_URL_PATH_PREFIX=/kolibri
User=kolibri