33 lines
450 B
Bash
33 lines
450 B
Bash
#!/bin/bash
|
|
|
|
DISABLE_UPDATER=0
|
|
CONFIG_FILE=$HOME/.config/hedera/config.sh
|
|
|
|
if [ -x $CONFIG_FILE ]
|
|
then
|
|
. $CONFIG_FILE
|
|
fi
|
|
|
|
while getopts ":u" OPTION
|
|
do
|
|
case $OPTION in
|
|
u)
|
|
DISABLE_UPDATER=1
|
|
;;
|
|
\?|:)
|
|
echo "Usage: hedera [-u]"
|
|
exit 1
|
|
;;
|
|
esac
|
|
done
|
|
|
|
if [ "$DISABLE_UPDATER" -eq "0" -a -x @bindir@/vn-updater-gui ]
|
|
then
|
|
echo "Running updater..."
|
|
@bindir@/vn-updater-gui
|
|
fi
|
|
|
|
export LIBMYSQL_ENABLE_CLEARTEXT_PLUGIN=1
|
|
|
|
exec hedera-bin
|