Revert "Fix server offline issue after OGP reference removal in PR #5"

This commit is contained in:
Frank Harris 2025-09-05 19:16:04 -04:00 committed by GitHub
parent 15d147faab
commit 1ac7d9b3c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 65 additions and 64 deletions

View file

@ -195,7 +195,7 @@ then
echo "Writing Config file - $cfgfile"
echo "%Cfg::Config = (
logfile => '${agent_home}/agent.log',
logfile => '${agent_home}/ogp_agent.log',
listen_port => '${port}',
listen_ip => '${ip}',
version => '${AGENT_VERSION}',
@ -521,7 +521,7 @@ then
ftpd_user=$(grep -oP '^User\s+\K.+' ${proFTPdConfFile})
ftpd_group=$(grep -oP '^Group\s+\K.+' ${proFTPdConfFile})
if [ -z "$agent_user" ]; then
agent_user=$(grep -oP 'agent_user=\K.+' /etc/init.d/agent)
agent_user=$(grep -oP 'agent_user=\K.+' /etc/init.d/ogp_agent)
fi
if [ ! -z "$ftpd_user" ] && [ ! -z "$ftpd_group" ] && [ ! -z "$agent_user" ]
then