summaryrefslogtreecommitdiff
path: root/nautilus-installer/src/prescript
blob: c9ff0bf42214adc4c192d73f51ac1a2cedb77111 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
if test x$DISPLAY = x; then
    echo "The Nautilus-Installer requires X"
    exit
fi
params="DISPLAY=$DISPLAY"
if test x$http_proxy = x; then
    params="$params"
else
    params="$params http_proxy=$http_proxy"
fi
if test $UID -ne 0; then
    echo ""
    echo "Eazel Installer PR2"
    echo ""
    echo "Eazel Installer requires superuser (root) access to prepare the system"
    echo "and to install packages."
    echo ""
    echo "Please enter root password at the prompt."
    xhost + localhost
    su - -c "export $params && cd $PWD && echo Uncompressing... && sh $0 $* $USER"
    xhost - localhost
    exit
fi