mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
Merge branch 'ent-5108-ws-cookie-parser' into 'develop'
Ent 5108 ws cookie parser See merge request artica/pandorafms!2964
This commit is contained in:
commit
f59f044c1c
@ -8,19 +8,8 @@ fi
|
|||||||
echo "Creating DEB packages in $RPMHOME/DEB"
|
echo "Creating DEB packages in $RPMHOME/DEB"
|
||||||
|
|
||||||
# Console
|
# 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
|
|
||||||
cd $CODEHOME/pandora_console/DEBIAN && bash ./make_deb_package.sh && mv ../*.deb $RPMHOME/DEB || exit 1
|
cd $CODEHOME/pandora_console/DEBIAN && bash ./make_deb_package.sh && mv ../*.deb $RPMHOME/DEB || exit 1
|
||||||
|
|
||||||
# Cleanup.
|
|
||||||
rm -f pandora_console/gotty
|
|
||||||
|
|
||||||
# Server
|
# Server
|
||||||
cd $CODEHOME/pandora_server/DEBIAN && bash ./make_deb_package.sh && mv ../*.deb $RPMHOME/DEB || exit 1
|
cd $CODEHOME/pandora_server/DEBIAN && bash ./make_deb_package.sh && mv ../*.deb $RPMHOME/DEB || exit 1
|
||||||
|
|
||||||
|
@ -8,20 +8,8 @@ fi
|
|||||||
echo "Creating RPM packages in $RPMHOME/RPMS"
|
echo "Creating RPM packages in $RPMHOME/RPMS"
|
||||||
|
|
||||||
# Console
|
# 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
|
rpmbuild -ba $CODEHOME/pandora_console/pandora_console.spec || exit 1
|
||||||
|
|
||||||
# Cleanup.
|
|
||||||
rm -f pandora_console/gotty
|
|
||||||
|
|
||||||
# Server
|
# Server
|
||||||
rpmbuild -ba $CODEHOME/pandora_server/pandora_server.spec || exit 1
|
rpmbuild -ba $CODEHOME/pandora_server/pandora_server.spec || exit 1
|
||||||
|
|
||||||
|
@ -8,20 +8,8 @@ fi
|
|||||||
echo "Creating RPM packages in $RPMHOME/RPMS"
|
echo "Creating RPM packages in $RPMHOME/RPMS"
|
||||||
|
|
||||||
# Console
|
# 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
|
rpmbuild -ba $CODEHOME/pandora_console/pandora_console.redhat.spec || exit 1
|
||||||
|
|
||||||
# Cleanup.
|
|
||||||
rm -f pandora_console/gotty
|
|
||||||
|
|
||||||
# Server
|
# Server
|
||||||
rpmbuild -ba $CODEHOME/pandora_server/pandora_server.redhat.spec || exit 1
|
rpmbuild -ba $CODEHOME/pandora_server/pandora_server.redhat.spec || exit 1
|
||||||
|
|
||||||
|
@ -8,25 +8,13 @@ fi
|
|||||||
echo "Creating RPM packages in $RPMHOME/RPMS"
|
echo "Creating RPM packages in $RPMHOME/RPMS"
|
||||||
|
|
||||||
# Console
|
# 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
|
rpmbuild -ba $CODEHOME/pandora_console/pandora_console.rhel7.spec || exit 1
|
||||||
|
|
||||||
# Cleanup.
|
|
||||||
rm -f pandora_console/gotty
|
|
||||||
|
|
||||||
# Server
|
# 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
|
# 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
|
# Enterprise console
|
||||||
rpmbuild -ba $PANDHOME_ENT/pandora_console/enterprise/pandora_console_enterprise.rhel7.spec || exit 1
|
rpmbuild -ba $PANDHOME_ENT/pandora_console/enterprise/pandora_console_enterprise.rhel7.spec || exit 1
|
||||||
|
@ -10,9 +10,6 @@ if [ -f /etc/init.d/apache2 ]; then
|
|||||||
echo Restart the apache.
|
echo Restart the apache.
|
||||||
/etc/init.d/apache2 restart
|
/etc/init.d/apache2 restart
|
||||||
fi
|
fi
|
||||||
# Install GoTTY binary file.
|
|
||||||
cp -pf %{prefix}/pandora_console/gotty /usr/bin/
|
|
||||||
chmod +x /usr/bin/gotty
|
|
||||||
|
|
||||||
# Install pandora_websocket_engine service.
|
# Install pandora_websocket_engine service.
|
||||||
cp -pf %{prefix}/pandora_console/pandora_websocket_engine /etc/init.d/
|
cp -pf %{prefix}/pandora_console/pandora_websocket_engine /etc/init.d/
|
||||||
|
@ -398,7 +398,8 @@ function quickShellSettings()
|
|||||||
$t->width = '100%';
|
$t->width = '100%';
|
||||||
$t->class = 'databox filters';
|
$t->class = 'databox filters';
|
||||||
$t->data = [];
|
$t->data = [];
|
||||||
$t->style[0] = 'font-weight: bold';
|
$t->style = [];
|
||||||
|
$t->style[0] = 'font-weight: bold; width: 40%;';
|
||||||
|
|
||||||
$t->data[0][0] = __('Gotty path');
|
$t->data[0][0] = __('Gotty path');
|
||||||
$t->data[0][1] = html_print_input_text(
|
$t->data[0][1] = html_print_input_text(
|
||||||
@ -445,7 +446,7 @@ function quickShellSettings()
|
|||||||
$hidden->width = '100%';
|
$hidden->width = '100%';
|
||||||
$hidden->class = 'databox filters';
|
$hidden->class = 'databox filters';
|
||||||
$hidden->data = [];
|
$hidden->data = [];
|
||||||
$hidden->style[0] = 'font-weight: bold';
|
$hidden->style[0] = 'font-weight: bold;width: 40%;';
|
||||||
|
|
||||||
$hidden->data[0][0] = __('Gotty user').ui_print_help_tip(
|
$hidden->data[0][0] = __('Gotty user').ui_print_help_tip(
|
||||||
__('Optional, set a user to access gotty service'),
|
__('Optional, set a user to access gotty service'),
|
||||||
|
@ -316,12 +316,8 @@ if (check_acl($config['id_user'], 0, 'PM')) {
|
|||||||
$sub2['godmode/setup/setup&section=notifications']['text'] = __('Notifications');
|
$sub2['godmode/setup/setup&section=notifications']['text'] = __('Notifications');
|
||||||
$sub2['godmode/setup/setup&section=notifications']['refr'] = 0;
|
$sub2['godmode/setup/setup&section=notifications']['refr'] = 0;
|
||||||
|
|
||||||
|
$sub2['godmode/setup/setup&section=websocket_engine']['text'] = __('Websocket Engine');
|
||||||
// Enable only if quickshell is enabled.
|
$sub2['godmode/setup/setup&section=websocket_engine']['refr'] = 0;
|
||||||
if (function_exists('quickShellSettings') === true) {
|
|
||||||
$sub2['godmode/setup/setup&section=quickshell']['text'] = __('QuickShell');
|
|
||||||
$sub2['godmode/setup/setup&section=quickshell']['refr'] = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($config['activate_gis']) {
|
if ($config['activate_gis']) {
|
||||||
$sub2['godmode/setup/gis']['text'] = __('Map conections GIS');
|
$sub2['godmode/setup/gis']['text'] = __('Map conections GIS');
|
||||||
|
@ -57,10 +57,6 @@ install -m 0644 pandora_console_logrotate_centos $RPM_BUILD_ROOT%{_sysconfdir}/l
|
|||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%post
|
%post
|
||||||
# Install GoTTY binary file.
|
|
||||||
cp -pf %{prefix}/pandora_console/gotty /usr/bin/
|
|
||||||
chmod +x /usr/bin/gotty
|
|
||||||
|
|
||||||
# Install pandora_websocket_engine service.
|
# Install pandora_websocket_engine service.
|
||||||
cp -pf %{prefix}/pandora_console/pandora_websocket_engine /etc/init.d/
|
cp -pf %{prefix}/pandora_console/pandora_websocket_engine /etc/init.d/
|
||||||
chmod +x /etc/init.d/pandora_websocket_engine
|
chmod +x /etc/init.d/pandora_websocket_engine
|
||||||
|
@ -57,10 +57,6 @@ install -m 0644 pandora_console_logrotate_centos $RPM_BUILD_ROOT%{_sysconfdir}/l
|
|||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%post
|
%post
|
||||||
# Install GoTTY binary file.
|
|
||||||
cp -pf %{prefix}/pandora_console/gotty /usr/bin/
|
|
||||||
chmod +x /usr/bin/gotty
|
|
||||||
|
|
||||||
# Install pandora_websocket_engine service.
|
# Install pandora_websocket_engine service.
|
||||||
cp -pf %{prefix}/pandora_console/pandora_websocket_engine /etc/init.d/
|
cp -pf %{prefix}/pandora_console/pandora_websocket_engine /etc/init.d/
|
||||||
chmod +x /etc/init.d/pandora_websocket_engine
|
chmod +x /etc/init.d/pandora_websocket_engine
|
||||||
|
@ -58,10 +58,6 @@ fi
|
|||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%post
|
%post
|
||||||
# Install GoTTY binary file.
|
|
||||||
cp -pf %{prefix}/pandora_console/gotty /usr/bin/
|
|
||||||
chmod +x /usr/bin/gotty
|
|
||||||
|
|
||||||
# Install pandora_websocket_engine service.
|
# Install pandora_websocket_engine service.
|
||||||
cp -pf %{prefix}/pandora_console/pandora_websocket_engine /etc/init.d/
|
cp -pf %{prefix}/pandora_console/pandora_websocket_engine /etc/init.d/
|
||||||
chmod +x /etc/init.d/pandora_websocket_engine
|
chmod +x /etc/init.d/pandora_websocket_engine
|
||||||
|
Loading…
x
Reference in New Issue
Block a user