Revert "RPMBUILD console updated with gotty binary file"

Undo Gotty in Pandora Console RPM

This reverts commit e43d8914aa.
This commit is contained in:
fbsanchez 2019-12-16 12:16:21 +01:00
parent d370fa560a
commit c2d0377a8d
6 changed files with 2 additions and 50 deletions

View File

@ -8,20 +8,8 @@ fi
echo "Creating RPM packages in $RPMHOME/RPMS"
# Console
# Extra files to be added to rpm.
if [ "$X86_64" == "" ]; then
# Fake gotty.
echo 'Only x86_64 is supported' > $CODEHOME/pandora_console/gotty
chmod +x pandora_console/gotty
else
cp /root/bin/winexe/x64/gotty $CODEHOME/pandora_console/
fi
rpmbuild -ba $CODEHOME/pandora_console/pandora_console.spec || exit 1
# Cleanup.
rm -f pandora_console/gotty
# Server
rpmbuild -ba $CODEHOME/pandora_server/pandora_server.spec || exit 1

View File

@ -8,20 +8,8 @@ fi
echo "Creating RPM packages in $RPMHOME/RPMS"
# Console
# Extra files to be added to rpm.
if [ "$X86_64" == "" ]; then
# Fake gotty.
echo 'Only x86_64 is supported' > $CODEHOME/pandora_console/gotty
chmod +x pandora_console/gotty
else
cp /root/bin/winexe/x64/gotty $CODEHOME/pandora_console/
fi
rpmbuild -ba $CODEHOME/pandora_console/pandora_console.redhat.spec || exit 1
# Cleanup.
rm -f pandora_console/gotty
# Server
rpmbuild -ba $CODEHOME/pandora_server/pandora_server.redhat.spec || exit 1

View File

@ -8,25 +8,13 @@ fi
echo "Creating RPM packages in $RPMHOME/RPMS"
# Console
# Extra files to be added to rpm.
if [ "$X86_64" == "" ]; then
# Fake gotty.
echo 'Only x86_64 is supported' > $CODEHOME/pandora_console/gotty
chmod +x pandora_console/gotty
else
cp /root/bin/winexe/x64/gotty $CODEHOME/pandora_console/
fi
rpmbuild -ba $CODEHOME/pandora_console/pandora_console.rhel7.spec || exit 1
# Cleanup.
rm -f pandora_console/gotty
# Server
rpmbuild -ba $CODEHOME/pandora_server/pandora_server.redhat.spec || exit 1
#rpmbuild -ba $CODEHOME/pandora_server/pandora_server.rhel7.spec || exit 1
# Unix agent
rpmbuild -ba $CODEHOME/pandora_agents/unix/pandora_agent.redhat.spec || exit 1
#rpmbuild -ba $CODEHOME/pandora_agents/unix/pandora_agent.rhel7.spec || exit 1
# Enterprise console
rpmbuild -ba $PANDHOME_ENT/pandora_console/enterprise/pandora_console_enterprise.rhel7.spec || exit 1

View File

@ -57,10 +57,6 @@ install -m 0644 pandora_console_logrotate_centos $RPM_BUILD_ROOT%{_sysconfdir}/l
rm -rf $RPM_BUILD_ROOT
%post
# Install GoTTY binary file.
cp -pf %{prefix}/pandora_console/gotty /usr/bin/
chmod +x /usr/bin/gotty
# Install pandora_websocket_engine service.
cp -pf %{prefix}/pandora_console/pandora_websocket_engine /etc/init.d/
chmod +x /etc/init.d/pandora_websocket_engine

View File

@ -57,10 +57,6 @@ install -m 0644 pandora_console_logrotate_centos $RPM_BUILD_ROOT%{_sysconfdir}/l
rm -rf $RPM_BUILD_ROOT
%post
# Install GoTTY binary file.
cp -pf %{prefix}/pandora_console/gotty /usr/bin/
chmod +x /usr/bin/gotty
# Install pandora_websocket_engine service.
cp -pf %{prefix}/pandora_console/pandora_websocket_engine /etc/init.d/
chmod +x /etc/init.d/pandora_websocket_engine

View File

@ -58,10 +58,6 @@ fi
rm -rf $RPM_BUILD_ROOT
%post
# Install GoTTY binary file.
cp -pf %{prefix}/pandora_console/gotty /usr/bin/
chmod +x /usr/bin/gotty
# Install pandora_websocket_engine service.
cp -pf %{prefix}/pandora_console/pandora_websocket_engine /etc/init.d/
chmod +x /etc/init.d/pandora_websocket_engine