#!/bin/bash
# ---------------------------------------------------------------------------
# This script installs files and services specific to the pi-imgtank.
#
# Author: Bernhard Bablok
# License: GPL3
#
# Website: https://github.com/bablokb/pi-imgtank
#
# ---------------------------------------------------------------------------

# --- basic packages   ------------------------------------------------------

apt-get update
apt-get -y install rsync graphicsmagick python-pip exfat-fuse fbi

# --- install pibrella support-library   ------------------------------------

#pip install pibrella

# --- install specific files   ----------------------------------------------

rsync -avz $(dirname "$0")/../files/ /

# --- enable/restart services   ---------------------------------------------

systemctl enable endofboot.service
#systemctl enable hat-pibrella-server.service
systemctl enable img_upload.path

systemctl start endofboot.service
#systemctl start hat-pibrella-server.service
systemctl start img_upload.path
