41ccf1d1e7
-removed the web interface. this project will instead continue to focus on backend operations. external applications can interface with the buf/rec directories to provide frontend operations. -removed the magick binary file from the project. magick will instead be built from source on the target machine for maximum support for the target architecture. -stream codec and format are now user configurable. -recording thumbnail and video formats are now user configurable.
53 lines
1.1 KiB
Bash
53 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/opt/mow" ]; then
|
|
mkdir /var/opt/mow
|
|
fi
|
|
|
|
if [ ! -d "/etc/mow" ]; then
|
|
mkdir /etc/mow
|
|
fi
|
|
|
|
if [ ! -d "/var/opt/mow/buf" ]; then
|
|
mkdir /var/opt/mow/buf
|
|
fi
|
|
|
|
if [ ! -d "/var/opt/mow/rec" ]; then
|
|
mkdir /var/opt/mow/rec
|
|
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 "rm -r /var/opt/mow/buf\n" >> /opt/mow/uninst
|
|
printf "deluser mow\n" >> /opt/mow/uninst
|
|
|
|
useradd -r mow
|
|
|
|
chown -R mow:mow /var/opt/mow
|
|
|
|
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
|