525c342c0f
-moved all service related code to seperate files. -split the camera service into 2 systemd services. -the -i, -c and -d options now function differently to support the split systemd services. -internal logging was completely removed. all verbose output will instead just go to stderr/stdout. will use journalctl for real time logging instead. -fixed the magick compile/install script so it will actually run now. -fixed a bug in the config file reading functions so it will now trim off white spaces and line breaks at the ends. doing this now prevents undefined behaviour if any parameter has a line break in it. -service user was added as a config file option. this can be used to set user name the installed services will run under. the default user is "mow." -the install.sh script will now add the default mow user to the video group making it possible to record footage from webcams without permission issues.
14 lines
292 B
Bash
14 lines
292 B
Bash
#!/bin/sh
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
|
|
if [ ! -f "/usr/local/bin/magick" ]
|
|
then
|
|
apt install -y git
|
|
git clone https://github.com/ImageMagick/ImageMagick.git .build-imagemagick
|
|
cd .build-imagemagick
|
|
./configure
|
|
make
|
|
make install
|
|
ldconfig /usr/local/lib
|
|
fi
|