Fix server offline issue by updating OGP references to match agent changes
Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
parent
acb647488e
commit
08f83918f1
8 changed files with 49 additions and 50 deletions
|
|
@ -175,7 +175,7 @@ then
|
|||
echo "Writing Config file - $cfgfile"
|
||||
|
||||
echo "%Cfg::Config = (
|
||||
logfile => '${agent_home}/ogp_agent.log',
|
||||
logfile => '${agent_home}/agent.log',
|
||||
listen_port => '${port}',
|
||||
listen_ip => '${ip}',
|
||||
version => '${AGENT_VERSION}',
|
||||
|
|
@ -489,7 +489,7 @@ then
|
|||
fi
|
||||
ftpd_user=$(grep -oP '^User\s+\K.+' ${proFTPdConfFile})
|
||||
ftpd_group=$(grep -oP '^Group\s+\K.+' ${proFTPdConfFile})
|
||||
agent_user=$(grep -oP 'agent_user=\K.+' /etc/init.d/ogp_agent)
|
||||
agent_user=$(grep -oP 'agent_user=\K.+' /etc/init.d/agent)
|
||||
if [ ! -z "$ftpd_user" ] && [ ! -z "$ftpd_group" ] && [ ! -z "$agent_user" ]
|
||||
then
|
||||
if [ "$(groups $agent_user|grep $ftpd_group)" == "" ]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue