forked from nullptrlabs/pgmodeler
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart-pgmodeler.sh
More file actions
17 lines (13 loc) · 865 Bytes
/
start-pgmodeler.sh
File metadata and controls
17 lines (13 loc) · 865 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
# Use this script if you having problems running pgModeler.
# The most common execution problem is the missing library error:
# [ ./pgmodeler: error while loading shared libraries: libutils.so.1: cannot open shared object file: No such file or directory ]
# This script configures all the needed enviroment variables but does not affects the configuration of the whole system.
# The only downside of this script is that you can not call the "pgmodeler" executable directly, being obligated
# to use this script every time you want to run the application.
# For a more elaborated solution you may find useful the usage of pgmodeler.vars file.
# Details about the use of that file are in it's comments.
# Loading needed environment variables
WORKING_DIR="$(dirname "$(readlink -f "$0")")"
source "$WORKING_DIR/pgmodeler.vars"
$PGMODELER_APP_PATH "$@"