summarylogtreecommitdiffstats
path: root/ucloner.sh
blob: f90866271610e8be96f8735961cf3e79d6af6a0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
export LANGUAGE=`echo $LANG | grep -oP [A-Za-z_]+ | head -1`

if [ "$( ps -A | grep ucloner_gui)" ] ; then
    zenity --title="Error" --error --text="Another uclone instance is running!"
    exit 1
fi

cd /opt/ucloner/

exec sudo python2 ./ucloner_gui.py