|
Revision 1362, 0.8 kB
(checked in by nk, 4 years ago)
|
|
allow to run as root but give warning
|
| Line | |
|---|
| 1 | #!/bin/sh |
|---|
| 2 | ## gajim |
|---|
| 3 | ## |
|---|
| 4 | ## Gajim Team: |
|---|
| 5 | ## - Yann Le Boulanger <asterix@lagaule.org> |
|---|
| 6 | ## - Vincent Hanquez <tab@snarc.org> |
|---|
| 7 | ## - Nikos Kouremenos <kourem@gmail.com> |
|---|
| 8 | ## |
|---|
| 9 | ## Copyright (C) 2003-2005 Gajim Team |
|---|
| 10 | ## |
|---|
| 11 | ## This program is free software; you can redistribute it and/or modify |
|---|
| 12 | ## it under the terms of the GNU General Public License as published |
|---|
| 13 | ## by the Free Software Foundation; version 2 only. |
|---|
| 14 | ## |
|---|
| 15 | ## This program is distributed in the hope that it will be useful, |
|---|
| 16 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 17 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 18 | ## GNU General Public License for more details. |
|---|
| 19 | |
|---|
| 20 | if [ `id -u` -eq 0 ]; then |
|---|
| 21 | echo "You must not launch Gajim as root, it is INSECURE" |
|---|
| 22 | fi |
|---|
| 23 | |
|---|
| 24 | cd PREFIX/share/gajim/src |
|---|
| 25 | export PYTHONPATH="$PYTHONPATH:PREFIX/lib/gajim" |
|---|
| 26 | python -OO gajim.pyo |
|---|