Merge branch 'ent-6493-provisioning-server-autoconfiguracion-de-agentes-no-es-funcional' into 'develop'

Ent 6493 provisioning server autoconfiguracion de agentes no es funcional

See merge request artica/pandorafms!3600
This commit is contained in:
Daniel Rodriguez 2020-11-16 18:51:08 +01:00
commit 26006fe33b
4 changed files with 3007 additions and 1 deletions

View File

@ -856,6 +856,24 @@ sub clean_blank {
return $input;
}
################################################################################
# Erase blank spaces before and after the string
################################################################################
sub trim {
my $string = shift;
if (is_empty($string)){
return "";
}
$string =~ s/\r//g;
chomp($string);
$string =~ s/^\s+//g;
$string =~ s/\s+$//g;
return $string;
}
################################################################################
# sub sqlWrap(texto)
# Elimina comillas y caracteres problematicos y los sustituye por equivalentes

View File

@ -262,6 +262,7 @@ install () {
ln -s /usr/local/bin/pandora_server $DESTDIR$PREFIX/bin
ln -s /usr/local/bin/pandora_exec $DESTDIR$PREFIX/bin
ln -s /usr/local/bin/tentacle_server $DESTDIR$PREFIX/bin
ln -s /usr/local/bin/tentacle_client $DESTDIR$PREFIX/bin
fi
fi
fi
@ -495,7 +496,9 @@ uninstall () {
rm -f $DESTDIR$PANDORA_SERVER 2> /dev/null
rm -f $DESTDIR$PREFIX/bin/pandora_server 2> /dev/null
rm -f $DESTDIR$PREFIX/bin/pandora_exec 2> /dev/null
rm -f $DESTDIR$PREFIX/bin/tentacle_server 2> /dev/null
# Do not remove tentacle files if agent is still installed...
[ -e $DESTDIR$PREFIX/bin/pandora_agent ] || rm -f $DESTDIR$PREFIX/bin/tentacle_server 2> /dev/null
[ -e $DESTDIR$PREFIX/bin/pandora_agent ] || rm -f $DESTDIR$PREFIX/bin/tentacle_client 2> /dev/null
rm -Rf $DESTDIR$PANDORA_HOME
rm -f $DESTDIR/etc/cron.hourly/pandora_db
rm -f $DESTDIR/etc/logrotate.d/pandora_server

1101
tentacle/tentacle_client Executable file

File diff suppressed because it is too large Load Diff

1884
tentacle/tentacle_server Executable file

File diff suppressed because it is too large Load Diff