Page MenuHomeDevCentral

D1414.diff
No OneTemporary

D1414.diff

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

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)

Event Timeline