-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.sh
executable file
·41 lines (30 loc) · 921 Bytes
/
run.sh
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
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
LD_PRELOAD=
export LD_PRELOAD
############################################ BEGIN-INIT
# Get the base dir
if [ -n "${FLATPAK_ID}" ]; then
# We are inside a flatpak
base_dir=/app
else
base_dir=${PWD}
fi
lib_dir=$base_dir/libexec
res_dir=$base_dir/resources
source ${lib_dir}/global.sh
############################################ END-INIT
printf "DOSVault version %s\n" ${dosvault_version}
# Check if DOSVault is installed properly
if [ ! -f $xml_file ]; then
# Install DOSVault
LC_ALL=en_US.UTF-8 uxterm $xterm_mode -e /bin/bash $lib_dir/install.sh
# Reload settings
source ${lib_dir}/global.sh
fi
# If it was installed correctly in the previous step, let's run pegasus
if [ -f $xml_file ]; then
if [ $(check_if_last_version) -eq 1 ]; then
LC_ALL=en_US.UTF-8 uxterm $xterm_mode -e /bin/bash $lib_dir/upgrade.sh
fi
LC_ALL=en_US.UTF-8 pegasus-fe
fi