2021-03-30 23:24:49 +08:00
|
|
|
#!/bin/bash
|
|
|
|
if [ "$EUID" -ne 0 ]; then
|
|
|
|
echo "Please run this script as root ( or with sudo )" ;
|
|
|
|
exit 1;
|
|
|
|
fi;
|
|
|
|
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
|
|
|
|
FOLDER_CHECK=`[ -d /usr/share/bbb-libreoffice-conversion/ ] && echo 1 || echo 0`
|
|
|
|
if [ "$FOLDER_CHECK" = "0" ]; then
|
|
|
|
echo "Install folder doesn't exists, installing"
|
|
|
|
mkdir -m 755 /usr/share/bbb-libreoffice-conversion/
|
|
|
|
cp assets/convert-remote.sh /usr/share/bbb-libreoffice-conversion/convert.sh
|
|
|
|
chmod 755 /usr/share/bbb-libreoffice-conversion/convert.sh
|
2021-04-15 20:01:24 +08:00
|
|
|
cp assets/etherpad-export.sh /usr/share/bbb-libreoffice-conversion/etherpad-export.sh
|
2021-04-15 19:32:56 +08:00
|
|
|
chmod 755 /usr/share/bbb-libreoffice-conversion/etherpad-export.sh
|
2021-03-30 23:24:49 +08:00
|
|
|
chown -R root /usr/share/bbb-libreoffice-conversion/
|
|
|
|
else
|
|
|
|
echo "Install folder already exists"
|
|
|
|
fi;
|
|
|
|
|