forked from I2P_Developers/i2p.i2p
parameterize
This commit is contained in:
57
debian/patches/0001-path-substitution.patch
vendored
57
debian/patches/0001-path-substitution.patch
vendored
@ -139,8 +139,8 @@ Debian wrapper.config to try to prevent confusion.
|
|||||||
}
|
}
|
||||||
|
|
||||||
showsetusermesg() {
|
showsetusermesg() {
|
||||||
- echo "`gettext 'Please edit i2prouter and set the variable RUN_AS_USER'`."
|
- echo "`gettext \"Please edit $0 and set the variable RUN_AS_USER\"`."
|
||||||
+ echo "`gettext 'Please edit /etc/default/i2p and set the variable RUN_AS_USER'`."
|
+ echo "`gettext "Please edit /etc/default/i2p and set the variable RUN_AS_USER"`."
|
||||||
}
|
}
|
||||||
|
|
||||||
checkifstartingasroot() {
|
checkifstartingasroot() {
|
||||||
@ -148,12 +148,12 @@ Debian wrapper.config to try to prevent confusion.
|
|||||||
echo "`gettext 'Running I2P as the root user is *not* recommended.'`"
|
echo "`gettext 'Running I2P as the root user is *not* recommended.'`"
|
||||||
showsetusermesg
|
showsetusermesg
|
||||||
echo
|
echo
|
||||||
- echo "`gettext 'To run as root anyway, edit i2prouter and set ALLOW_ROOT=true.'`"
|
- echo "`gettext \"To run as root anyway, edit $0 and set ALLOW_ROOT=true.\"`"
|
||||||
+ echo "`gettext 'To run as root anyway, edit /etc/default/i2p and set ALLOW_ROOT=true.'`"
|
+ echo "`gettext \"To run as root anyway, edit /etc/default/i2p and set ALLOW_ROOT=true.\"`"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@@ -1858,24 +1806,9 @@
|
@@ -1858,23 +1806,9 @@
|
||||||
status
|
status
|
||||||
;;
|
;;
|
||||||
|
|
||||||
@ -174,13 +174,12 @@ Debian wrapper.config to try to prevent confusion.
|
|||||||
-
|
-
|
||||||
- 'remove' | 'uninstall')
|
- 'remove' | 'uninstall')
|
||||||
- removedaemon
|
- removedaemon
|
||||||
- ;;
|
|
||||||
+ 'install' | 'remove' | 'uninstall')
|
+ 'install' | 'remove' | 'uninstall')
|
||||||
+ echo "Use \"dpkg-reconfigure i2p\" to configure the initscript."
|
+ echo "Use \"dpkg-reconfigure i2p\" to configure the initscript."
|
||||||
+ exit 1
|
+ exit 1
|
||||||
|
;;
|
||||||
|
|
||||||
'dump')
|
'dump')
|
||||||
checkUser "" "$COMMAND"
|
|
||||||
--- a/installer/resources/runplain.sh
|
--- a/installer/resources/runplain.sh
|
||||||
+++ b/installer/resources/runplain.sh
|
+++ b/installer/resources/runplain.sh
|
||||||
@@ -11,8 +11,8 @@
|
@@ -11,8 +11,8 @@
|
||||||
@ -325,8 +324,8 @@ Debian wrapper.config to try to prevent confusion.
|
|||||||
msgstr "Falls gestartet, fordere einen Java Thread dump an"
|
msgstr "Falls gestartet, fordere einen Java Thread dump an"
|
||||||
|
|
||||||
#: ../i2prouter:1788
|
#: ../i2prouter:1788
|
||||||
-msgid "Please edit i2prouter and set the variable RUN_AS_USER"
|
-msgid "Please edit $0 and set the variable RUN_AS_USER"
|
||||||
-msgstr "Bitte bearbeite i2prouter und setze die Variable RUN_AS_USER"
|
-msgstr "Bitte bearbeite $0 und setze die Variable RUN_AS_USER"
|
||||||
+msgid "Please edit /etc/default/i2p and set the variable RUN_AS_USER"
|
+msgid "Please edit /etc/default/i2p and set the variable RUN_AS_USER"
|
||||||
+msgstr "Bitte bearbeite /etc/default/i2p und setze die Variable RUN_AS_USER"
|
+msgstr "Bitte bearbeite /etc/default/i2p und setze die Variable RUN_AS_USER"
|
||||||
|
|
||||||
@ -335,10 +334,10 @@ Debian wrapper.config to try to prevent confusion.
|
|||||||
msgstr "I2P als root Benutzer auszuführen ist *nicht* empfehlenswert."
|
msgstr "I2P als root Benutzer auszuführen ist *nicht* empfehlenswert."
|
||||||
|
|
||||||
#: ../i2prouter:1796
|
#: ../i2prouter:1796
|
||||||
-msgid "To run as root anyway, edit i2prouter and set ALLOW_ROOT=true."
|
-msgid "To run as root anyway, edit $0 and set ALLOW_ROOT=true."
|
||||||
+msgid "To run as root anyway, edit /etc/default/i2p and set ALLOW_ROOT=true."
|
+msgid "To run as root anyway, edit /etc/default/i2p and set ALLOW_ROOT=true."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
-"Um I2P trotzdem als root auszuführen bearbeite i2prouter und setze ALLOW_ROOT=true."
|
-"Um I2P trotzdem als root auszuführen bearbeite $0 und setze ALLOW_ROOT=true."
|
||||||
+"Um I2P trotzdem als root auszuführen bearbeite /etc/default/i2p und setze ALLOW_ROOT=true."
|
+"Um I2P trotzdem als root auszuführen bearbeite /etc/default/i2p und setze ALLOW_ROOT=true."
|
||||||
--- a/installer/resources/locale/po/messages_en.po
|
--- a/installer/resources/locale/po/messages_en.po
|
||||||
+++ b/installer/resources/locale/po/messages_en.po
|
+++ b/installer/resources/locale/po/messages_en.po
|
||||||
@ -346,7 +345,7 @@ Debian wrapper.config to try to prevent confusion.
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../i2prouter:1788
|
#: ../i2prouter:1788
|
||||||
-msgid "Please edit i2prouter and set the variable RUN_AS_USER"
|
-msgid "Please edit $0 and set the variable RUN_AS_USER"
|
||||||
+msgid "Please edit /etc/default/i2p and set the variable RUN_AS_USER"
|
+msgid "Please edit /etc/default/i2p and set the variable RUN_AS_USER"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -355,7 +354,7 @@ Debian wrapper.config to try to prevent confusion.
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../i2prouter:1796
|
#: ../i2prouter:1796
|
||||||
-msgid "To run as root anyway, edit i2prouter and set ALLOW_ROOT=true."
|
-msgid "To run as root anyway, edit $0 and set ALLOW_ROOT=true."
|
||||||
+msgid "To run as root anyway, edit /etc/default/i2p and set ALLOW_ROOT=true."
|
+msgid "To run as root anyway, edit /etc/default/i2p and set ALLOW_ROOT=true."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
--- a/installer/resources/locale/po/messages_fr.po
|
--- a/installer/resources/locale/po/messages_fr.po
|
||||||
@ -364,7 +363,7 @@ Debian wrapper.config to try to prevent confusion.
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../i2prouter:1780
|
#: ../i2prouter:1780
|
||||||
-msgid "Please edit i2prouter and set the variable RUN_AS_USER"
|
-msgid "Please edit $0 and set the variable RUN_AS_USER"
|
||||||
+msgid "Please edit /etc/default/i2p and set the variable RUN_AS_USER"
|
+msgid "Please edit /etc/default/i2p and set the variable RUN_AS_USER"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -373,7 +372,7 @@ Debian wrapper.config to try to prevent confusion.
|
|||||||
"Faire fonctionner I2P en tant qu'utilisateur root n'est *pas* recommandé."
|
"Faire fonctionner I2P en tant qu'utilisateur root n'est *pas* recommandé."
|
||||||
|
|
||||||
#: ../i2prouter:1788
|
#: ../i2prouter:1788
|
||||||
-msgid "To run as root anyway, edit i2prouter and set ALLOW_ROOT=true."
|
-msgid "To run as root anyway, edit $0 and set ALLOW_ROOT=true."
|
||||||
+msgid "To run as root anyway, edit /etc/default/i2p and set ALLOW_ROOT=true."
|
+msgid "To run as root anyway, edit /etc/default/i2p and set ALLOW_ROOT=true."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
--- a/installer/resources/locale/po/messages_it.po
|
--- a/installer/resources/locale/po/messages_it.po
|
||||||
@ -382,7 +381,7 @@ Debian wrapper.config to try to prevent confusion.
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../i2prouter:1780
|
#: ../i2prouter:1780
|
||||||
-msgid "Please edit i2prouter and set the variable RUN_AS_USER"
|
-msgid "Please edit $0 and set the variable RUN_AS_USER"
|
||||||
+msgid "Please edit /etc/default/i2p and set the variable RUN_AS_USER"
|
+msgid "Please edit /etc/default/i2p and set the variable RUN_AS_USER"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -391,7 +390,7 @@ Debian wrapper.config to try to prevent confusion.
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../i2prouter:1788
|
#: ../i2prouter:1788
|
||||||
-msgid "To run as root anyway, edit i2prouter and set ALLOW_ROOT=true."
|
-msgid "To run as root anyway, edit $0 and set ALLOW_ROOT=true."
|
||||||
+msgid "To run as root anyway, edit /etc/default/i2p and set ALLOW_ROOT=true."
|
+msgid "To run as root anyway, edit /etc/default/i2p and set ALLOW_ROOT=true."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
--- a/installer/resources/locale/po/messages_ru.po
|
--- a/installer/resources/locale/po/messages_ru.po
|
||||||
@ -400,7 +399,7 @@ Debian wrapper.config to try to prevent confusion.
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../i2prouter:1780
|
#: ../i2prouter:1780
|
||||||
-msgid "Please edit i2prouter and set the variable RUN_AS_USER"
|
-msgid "Please edit $0 and set the variable RUN_AS_USER"
|
||||||
+msgid "Please edit /etc/default/i2p and set the variable RUN_AS_USER"
|
+msgid "Please edit /etc/default/i2p and set the variable RUN_AS_USER"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -409,26 +408,6 @@ Debian wrapper.config to try to prevent confusion.
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../i2prouter:1788
|
#: ../i2prouter:1788
|
||||||
-msgid "To run as root anyway, edit i2prouter and set ALLOW_ROOT=true."
|
-msgid "To run as root anyway, edit $0 and set ALLOW_ROOT=true."
|
||||||
+msgid "To run as root anyway, edit /etc/default/i2p and set ALLOW_ROOT=true."
|
+msgid "To run as root anyway, edit /etc/default/i2p and set ALLOW_ROOT=true."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
--- a/installer/resources/locale/po/messages_sv.po
|
|
||||||
+++ b/installer/resources/locale/po/messages_sv.po
|
|
||||||
@@ -187,13 +187,13 @@
|
|
||||||
msgstr "Fråga efter en Java thread dump vid drift."
|
|
||||||
|
|
||||||
#: ../i2prouter:1780
|
|
||||||
-msgid "Please edit i2prouter and set the variable RUN_AS_USER"
|
|
||||||
-msgstr "Var god ändra i2prouter och sätt variabeln RUN_AS_USER"
|
|
||||||
+msgid "Please edit /etc/default/i2p and set the variable RUN_AS_USER"
|
|
||||||
+msgstr "Var god ändra /etc/default/i2p och sätt variabeln RUN_AS_USER"
|
|
||||||
|
|
||||||
#: ../i2prouter:1785
|
|
||||||
msgid "Running I2P as the root user is *not* recommended."
|
|
||||||
msgstr "Att köra I2P som användare root är *inte* rekommenderat."
|
|
||||||
|
|
||||||
#: ../i2prouter:1788
|
|
||||||
-msgid "To run as root anyway, edit i2prouter and set ALLOW_ROOT=true."
|
|
||||||
-msgstr "För att köra som root iallafall, ändra i2prouter och sätt ALLOW_ROOT=true"
|
|
||||||
+msgid "To run as root anyway, edit /etc/default/i2p and set ALLOW_ROOT=true."
|
|
||||||
+msgstr "För att köra som root iallafall, ändra /etc/default/i2p och sätt ALLOW_ROOT=true"
|
|
||||||
|
@ -1785,7 +1785,7 @@ showUsage() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
showsetusermesg() {
|
showsetusermesg() {
|
||||||
echo "`gettext 'Please edit i2prouter and set the variable RUN_AS_USER'`."
|
echo "`gettext \"Please edit $0 and set the variable RUN_AS_USER\"`."
|
||||||
}
|
}
|
||||||
|
|
||||||
checkifstartingasroot() {
|
checkifstartingasroot() {
|
||||||
@ -1793,7 +1793,7 @@ checkifstartingasroot() {
|
|||||||
echo "`gettext 'Running I2P as the root user is *not* recommended.'`"
|
echo "`gettext 'Running I2P as the root user is *not* recommended.'`"
|
||||||
showsetusermesg
|
showsetusermesg
|
||||||
echo
|
echo
|
||||||
echo "`gettext 'To run as root anyway, edit i2prouter and set ALLOW_ROOT=true.'`"
|
echo "`gettext \"To run as root anyway, edit $0 and set ALLOW_ROOT=true.\"`"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -192,14 +192,14 @@ msgid "Request a Java thread dump if running."
|
|||||||
msgstr "Falls gestartet, fordere einen Java Thread dump an"
|
msgstr "Falls gestartet, fordere einen Java Thread dump an"
|
||||||
|
|
||||||
#: ../i2prouter:1788
|
#: ../i2prouter:1788
|
||||||
msgid "Please edit i2prouter and set the variable RUN_AS_USER"
|
msgid "Please edit $0 and set the variable RUN_AS_USER"
|
||||||
msgstr "Bitte bearbeite i2prouter und setze die Variable RUN_AS_USER"
|
msgstr "Bitte bearbeite $0 und setze die Variable RUN_AS_USER"
|
||||||
|
|
||||||
#: ../i2prouter:1793
|
#: ../i2prouter:1793
|
||||||
msgid "Running I2P as the root user is *not* recommended."
|
msgid "Running I2P as the root user is *not* recommended."
|
||||||
msgstr "I2P als root Benutzer auszuführen ist *nicht* empfehlenswert."
|
msgstr "I2P als root Benutzer auszuführen ist *nicht* empfehlenswert."
|
||||||
|
|
||||||
#: ../i2prouter:1796
|
#: ../i2prouter:1796
|
||||||
msgid "To run as root anyway, edit i2prouter and set ALLOW_ROOT=true."
|
msgid "To run as root anyway, edit $0 and set ALLOW_ROOT=true."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Um I2P trotzdem als root auszuführen bearbeite i2prouter und setze ALLOW_ROOT=true."
|
"Um I2P trotzdem als root auszuführen bearbeite $0 und setze ALLOW_ROOT=true."
|
||||||
|
@ -185,7 +185,7 @@ msgid "Request a Java thread dump if running."
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../i2prouter:1788
|
#: ../i2prouter:1788
|
||||||
msgid "Please edit i2prouter and set the variable RUN_AS_USER"
|
msgid "Please edit $0 and set the variable RUN_AS_USER"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../i2prouter:1793
|
#: ../i2prouter:1793
|
||||||
@ -193,5 +193,5 @@ msgid "Running I2P as the root user is *not* recommended."
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../i2prouter:1796
|
#: ../i2prouter:1796
|
||||||
msgid "To run as root anyway, edit i2prouter and set ALLOW_ROOT=true."
|
msgid "To run as root anyway, edit $0 and set ALLOW_ROOT=true."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -187,7 +187,7 @@ msgid "Request a Java thread dump if running."
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../i2prouter:1780
|
#: ../i2prouter:1780
|
||||||
msgid "Please edit i2prouter and set the variable RUN_AS_USER"
|
msgid "Please edit $0 and set the variable RUN_AS_USER"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../i2prouter:1785
|
#: ../i2prouter:1785
|
||||||
@ -196,5 +196,5 @@ msgstr ""
|
|||||||
"Faire fonctionner I2P en tant qu'utilisateur root n'est *pas* recommandé."
|
"Faire fonctionner I2P en tant qu'utilisateur root n'est *pas* recommandé."
|
||||||
|
|
||||||
#: ../i2prouter:1788
|
#: ../i2prouter:1788
|
||||||
msgid "To run as root anyway, edit i2prouter and set ALLOW_ROOT=true."
|
msgid "To run as root anyway, edit $0 and set ALLOW_ROOT=true."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -187,7 +187,7 @@ msgid "Request a Java thread dump if running."
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../i2prouter:1780
|
#: ../i2prouter:1780
|
||||||
msgid "Please edit i2prouter and set the variable RUN_AS_USER"
|
msgid "Please edit $0 and set the variable RUN_AS_USER"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../i2prouter:1785
|
#: ../i2prouter:1785
|
||||||
@ -195,5 +195,5 @@ msgid "Running I2P as the root user is *not* recommended."
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../i2prouter:1788
|
#: ../i2prouter:1788
|
||||||
msgid "To run as root anyway, edit i2prouter and set ALLOW_ROOT=true."
|
msgid "To run as root anyway, edit $0 and set ALLOW_ROOT=true."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -188,7 +188,7 @@ msgid "Request a Java thread dump if running."
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../i2prouter:1780
|
#: ../i2prouter:1780
|
||||||
msgid "Please edit i2prouter and set the variable RUN_AS_USER"
|
msgid "Please edit $0 and set the variable RUN_AS_USER"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../i2prouter:1785
|
#: ../i2prouter:1785
|
||||||
@ -196,5 +196,5 @@ msgid "Running I2P as the root user is *not* recommended."
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../i2prouter:1788
|
#: ../i2prouter:1788
|
||||||
msgid "To run as root anyway, edit i2prouter and set ALLOW_ROOT=true."
|
msgid "To run as root anyway, edit $0 and set ALLOW_ROOT=true."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -187,13 +187,13 @@ msgid "Request a Java thread dump if running."
|
|||||||
msgstr "Fråga efter en Java thread dump vid drift."
|
msgstr "Fråga efter en Java thread dump vid drift."
|
||||||
|
|
||||||
#: ../i2prouter:1780
|
#: ../i2prouter:1780
|
||||||
msgid "Please edit i2prouter and set the variable RUN_AS_USER"
|
msgid "Please edit $0 and set the variable RUN_AS_USER"
|
||||||
msgstr "Var god ändra i2prouter och sätt variabeln RUN_AS_USER"
|
msgstr "Var god ändra $0 och sätt variabeln RUN_AS_USER"
|
||||||
|
|
||||||
#: ../i2prouter:1785
|
#: ../i2prouter:1785
|
||||||
msgid "Running I2P as the root user is *not* recommended."
|
msgid "Running I2P as the root user is *not* recommended."
|
||||||
msgstr "Att köra I2P som användare root är *inte* rekommenderat."
|
msgstr "Att köra I2P som användare root är *inte* rekommenderat."
|
||||||
|
|
||||||
#: ../i2prouter:1788
|
#: ../i2prouter:1788
|
||||||
msgid "To run as root anyway, edit i2prouter and set ALLOW_ROOT=true."
|
msgid "To run as root anyway, edit $0 and set ALLOW_ROOT=true."
|
||||||
msgstr "För att köra som root iallafall, ändra i2prouter och sätt ALLOW_ROOT=true"
|
msgstr "För att köra som root iallafall, ändra $0 och sätt ALLOW_ROOT=true"
|
||||||
|
Reference in New Issue
Block a user