Changeset 148ce25


Ignore:
Timestamp:
Oct 31, 2010 7:48:41 PM (9 years ago)
Author:
HungryHobo <HungryHobo@…>
Branches:
master
Children:
ff5b795
Parents:
56ef3845
Message:

Print an error if /etc/init.d/i2p is run as non-root so Ubuntu users aren't asked for a non-existing root password

File:
1 edited

Legend:

Unmodified
Added
Removed
  • debian/scripts/init

    r56ef3845 r148ce25  
    1717        su i2psvc -c "/usr/lib/i2p/i2prouter $1"
    1818}
     19
     20if [ `id -un` != "root" ]; then
     21        echo "This script ($0) must be run as root"
     22        exit 1
     23fi
    1924
    2025case "$1" in
Note: See TracChangeset for help on using the changeset viewer.