Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3784798
D1414.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D1414.diff
View Options
diff --git a/roles/viperserv/eggdrop/config.sls b/roles/viperserv/eggdrop/config.sls
--- a/roles/viperserv/eggdrop/config.sls
+++ b/roles/viperserv/eggdrop/config.sls
@@ -69,6 +69,7 @@
realname: {{ bot['realname'] | default(botname) }}
scripts: {{ bot['scripts'] }}
modules: {{ bot['modules'] | default([]) }}
+ runas: {{ bot['runas'] | default('viperserv') }}
/srv/viperserv/{{ botname }}/motd:
file.managed:
diff --git a/roles/viperserv/eggdrop/files/eggdrop-bot.conf b/roles/viperserv/eggdrop/files/eggdrop-bot.conf
--- a/roles/viperserv/eggdrop/files/eggdrop-bot.conf
+++ b/roles/viperserv/eggdrop/files/eggdrop-bot.conf
@@ -30,6 +30,8 @@
# Settings for {{ botname }}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+set runas {{ runas }}
+
set username {{ botname }}
set nick $username
set altnick {{ botname }}`
diff --git a/roles/viperserv/eggdrop/files/eggdrop-core.conf b/roles/viperserv/eggdrop/files/eggdrop-core.conf
--- a/roles/viperserv/eggdrop/files/eggdrop-core.conf
+++ b/roles/viperserv/eggdrop/files/eggdrop-core.conf
@@ -229,7 +229,7 @@
# Specify here the filename Eggdrop will save its pid to. If no pidfile is
# specified, pid.(botnet-nick) will be used.
-set pidfile $env(HOME)/[string tolower $username].pid
+set pidfile /var/run/$runas/[string tolower $username].pid
# Specify here where Eggdrop should look for help files. Don't modify this
# setting unless you know what you're doing!
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 27, 07:00 (19 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2266283
Default Alt Text
D1414.diff (1 KB)
Attached To
Mode
D1414: Update pidfile eggdrop variable
Attached
Detach File
Event Timeline
Log In to Comment