-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathinstall.sh
More file actions
29 lines (19 loc) · 773 Bytes
/
install.sh
File metadata and controls
29 lines (19 loc) · 773 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env bash
echo "[x] Installing DocxFactory ..."
if [ -d "/opt/DocxFactory" ]; then
echo "[x] Uninstalling older versions ..."
sudo rm -r /opt/DocxFactory/
fi
echo "[x] Extracting files to /opt/ folder..."
sudo tar -zxf ./DocxFactoryLinux64.tar.gz -C /opt
# Add the DocxFactory/lib/ folder to the list of library
# to search when a program is running.
sudo echo /opt/DocxFactory/lib/ > /etc/ld.so.conf.d/DocxFactory.conf
sudo chmod 666 /etc/ld.so.conf.d/DocxFactory.conf
sudo ldconfig
echo "[x] Installing the DocxFactory python3 module ..."
cp ./test_install.py /opt/DocxFactory/python/test_install.py
cd /opt/DocxFactory/python
python3 /opt/DocxFactory/python/setup.py install
echo "[x] Testing if installation succeed ..."
python3 ./test_install.py