Installs etherpad script in libreoffice-conversion directory

This commit is contained in:
Gustavo Trott 2021-04-15 08:32:56 -03:00
parent 7c4f2fa4dd
commit 2abda6bdc1
3 changed files with 5 additions and 1 deletions

View File

@ -2,7 +2,7 @@
#This script is used to enable Etherpad to export to PDF/ODT #This script is used to enable Etherpad to export to PDF/ODT
# 1- Edit /usr/share/etherpad-lite/settings.json # 1- Edit /usr/share/etherpad-lite/settings.json
# 2- Set "soffice" config to this script path # 2- Set "soffice" config to this script path (default "/usr/share/bbb-libreoffice-conversion/etherpad-export.sh")
/usr/share/bbb-libreoffice-conversion/convert.sh "$8" "$(echo $8 | sed -E -e 's/html|odt/'$7'/')" $7 /usr/share/bbb-libreoffice-conversion/convert.sh "$8" "$(echo $8 | sed -E -e 's/html|odt/'$7'/')" $7

View File

@ -37,6 +37,8 @@ if [ "$FOLDER_CHECK" = "0" ]; then
mkdir -m 755 /usr/share/bbb-libreoffice-conversion/ mkdir -m 755 /usr/share/bbb-libreoffice-conversion/
cp assets/convert-local.sh /usr/share/bbb-libreoffice-conversion/convert.sh cp assets/convert-local.sh /usr/share/bbb-libreoffice-conversion/convert.sh
chmod 755 /usr/share/bbb-libreoffice-conversion/convert.sh chmod 755 /usr/share/bbb-libreoffice-conversion/convert.sh
cp assets/etherpad-export.sh /usr/share/bbb-libreoffice-conversion/etherpad-export.sh
chmod 755 /usr/share/bbb-libreoffice-conversion/etherpad-export.sh
chown -R root /usr/share/bbb-libreoffice-conversion/ chown -R root /usr/share/bbb-libreoffice-conversion/
else else
echo "Install folder already exists" echo "Install folder already exists"

View File

@ -12,6 +12,8 @@ if [ "$FOLDER_CHECK" = "0" ]; then
mkdir -m 755 /usr/share/bbb-libreoffice-conversion/ mkdir -m 755 /usr/share/bbb-libreoffice-conversion/
cp assets/convert-remote.sh /usr/share/bbb-libreoffice-conversion/convert.sh cp assets/convert-remote.sh /usr/share/bbb-libreoffice-conversion/convert.sh
chmod 755 /usr/share/bbb-libreoffice-conversion/convert.sh chmod 755 /usr/share/bbb-libreoffice-conversion/convert.sh
cp assets/convert-remote.sh /usr/share/bbb-libreoffice-conversion/etherpad-export.sh
chmod 755 /usr/share/bbb-libreoffice-conversion/etherpad-export.sh
chown -R root /usr/share/bbb-libreoffice-conversion/ chown -R root /usr/share/bbb-libreoffice-conversion/
else else
echo "Install folder already exists" echo "Install folder already exists"