Include branding files into configuration JSON
- Files are encoded in base64
- Files are put at the bottom of JSON file for easier reading
- Support both GUI and CLI
- Silently skips files which could not be retrieved
- Extracted to a safe temp location first
- Added a user-friendly display of configuration for CLI usage to check Ref Issue #164 (closed).
Sample cli display:
~/s/pibox-installer piboxt (base64-branding-json|✚3…) $ python pibox-installer/__main__.py cli --config ~/Desktop/test-b64.json
Pibox-installer configuration:
name: pibox-reg
timezone: Africa/Bamako
language: en
wifi_pwd: walasa
kalite: []
aflatoun: False
wikifundi: []
edupi: True
zim_install: ['choisirsacontraception.fr']
size: 5368709120
favicon: /var/folders/bt/ctdt6vrj33n8yhzhpvyfy53h0000gn/T/tmpcz0ebnwv/dhis-extractor.ico
logo: /var/folders/bt/ctdt6vrj33n8yhzhpvyfy53h0000gn/T/tmpcz0ebnwv/xlsx-20.png
css: None
build_dir: /Users/reg/Desktop
catalog: False
admin_account: ['root', 'passw0rd']
config: /Users/reg/Desktop/test-b64.json
Installer will start in (5) seconds. 5 4 3 2 1
Starting...