restoreData.sh throws errors on startup

restoreData.sh throws errors on startup

Hey,

 I want to move my ServiceDesk Plus database from the default PostgreSQL to MS SQL. I stopped the service, backed up the database with  no errors, ran the changeDBServer.sh --console and it created the new database on MS SQL just fine. I started the service and it populated the database. I then downed the service again and ran the command restoreData.sh -c [full backup just taken] and received the following error.

 sh ./restoreData.sh -c /opt/manageengine/ServiceDesk/backup/backup_postgres_11109_fullbackup_04_10_2020_16_41
./restoreData.sh: 18: [: Linux: unexpected operator
Exception in thread "main" java.lang.UnsatisfiedLinkError: /opt/manageengine/ServiceDesk/jre/lib/amd64/libawt_xawt.so: libXtst.so.6: cannot open shared object file: No such file or directory
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824)
        at java.lang.Runtime.load0(Runtime.java:810)
        at java.lang.System.load(System.java:1086)
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1845)
        at java.lang.Runtime.loadLibrary0(Runtime.java:871)
        at java.lang.System.loadLibrary(System.java:1122)
        at java.awt.Toolkit$3.run(Toolkit.java:1636)
        at java.awt.Toolkit$3.run(Toolkit.java:1634)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.awt.Toolkit.loadLibraries(Toolkit.java:1633)
        at java.awt.Toolkit.<clinit>(Toolkit.java:1670)
        at java.awt.Component.<clinit>(Component.java:593)

and I can't seem to get past this step.

Configuration is Ubuntu 18.04.3 LTS 
openjdk version "1.8.0_222"
OpenJDK Runtime Environment (Zulu 8.40.0.25-CA-linux64) (build 1.8.0_222-b10)
OpenJDK 64-Bit Server VM (Zulu 8.40.0.25-CA-linux64) (build 25.222-b10, mixed mode)


Any constructive ideas??

                  New to ADSelfService Plus?