83080cfe41
-pixel sizes for video and thumbnails are now configurable -the amount of recording and snapshot threads are now configurable -changed the default buffer and recording directories to drop the application name and also drop a level -service files are now stored in a dedicated dir -fixed logging so it will capture errors better -moved folder structure building to rdConfig() and added more error capturing -recording fps is now configurable
54 lines
1.1 KiB
Bash
54 lines
1.1 KiB
Bash
#!/bin/sh
|
|
if [ -f "/opt/mow/uninst" ]; then
|
|
mow -u -f
|
|
fi
|
|
|
|
if [ ! -d "/opt/mow" ]; then
|
|
mkdir /opt/mow
|
|
fi
|
|
|
|
if [ ! -d "/var/footage" ]; then
|
|
mkdir /var/footage
|
|
fi
|
|
|
|
if [ ! -d "/etc/mow" ]; then
|
|
mkdir /etc/mow
|
|
fi
|
|
|
|
if [ ! -d "/var/buffer" ]; then
|
|
mkdir /var/buffer
|
|
fi
|
|
|
|
if [ ! -d "/var/mow_serv" ]; then
|
|
mkdir /var/mow_serv
|
|
fi
|
|
|
|
cp -v ./.build-mow/mow /opt/mow/bin
|
|
|
|
echo "writing /opt/mow/run"
|
|
printf "#!/bin/sh\n" > /opt/mow/run
|
|
printf "/opt/mow/bin \$1 \$2 \$3\n" >> /opt/mow/run
|
|
|
|
echo "writing /opt/mow/uninst"
|
|
printf "#!/bin/sh\n" > /opt/mow/uninst
|
|
printf "rm -v /opt/mow/bin\n" >> /opt/mow/uninst
|
|
printf "rm -v /opt/mow/run\n" >> /opt/mow/uninst
|
|
printf "rm -v /opt/mow/uninst\n" >> /opt/mow/uninst
|
|
printf "rm -v /usr/bin/mow\n" >> /opt/mow/uninst
|
|
printf "rm -rv /opt/mow\n" >> /opt/mow/uninst
|
|
printf "deluser mow\n" >> /opt/mow/uninst
|
|
|
|
useradd -r mow
|
|
|
|
chown -R -v mow:mow /var/footage
|
|
chown -R -v mow:mow /var/buffer
|
|
chown -R -v mow:mow /var/mow_serv
|
|
|
|
chmod -v +x /opt/mow/run
|
|
chmod -v +x /opt/mow/bin
|
|
chmod -v +x /opt/mow/uninst
|
|
|
|
ln -sv /opt/mow/run /usr/bin/mow
|
|
|
|
sh imgmagick_build.sh
|