From 57afc4cd5d02cf5cd46aa93896579f12c0eec2db Mon Sep 17 00:00:00 2001
From: kytv <kytv@mail.i2p>
Date: Tue, 13 Sep 2011 00:09:36 +0000
Subject: [PATCH] Advise to set RUN_AS_USER when installing as a daemon

---
 installer/resources/i2prouter | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/installer/resources/i2prouter b/installer/resources/i2prouter
index 48cd2b354c..bb7595f94a 100644
--- a/installer/resources/i2prouter
+++ b/installer/resources/i2prouter
@@ -1539,6 +1539,10 @@ showUsage() {
     exit 1
 }
 
+showsetusermesg()  {
+    echo "Please edit $0 and set the variable RUN_AS_USER."
+}
+
 docommand() {
     case "$COMMAND" in
         'console')
@@ -1612,6 +1616,10 @@ docommand() {
 
         'install')
             installdaemon
+            if [ ! `grep ^RUN_AS_USER $0` ]; then
+                 showsetusermesg
+            fi
+
             ;;
 
         'remove')
-- 
GitLab