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:
commit
26006fe33b
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue