2010-06-01 Miguel de Dios <miguel.dedios@artica.es>

* unix/DEBIAN/prerm: disabled the erase conf file and plugin dir.
	
	* unix/DEBIAN/conffiles: added plugin directory.
	
	* unix/DEBIAN/make_deb_package.sh: cleaned source code, and now make the
	plugin empty dir for package builder.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2830 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2010-06-01 13:11:02 +00:00
parent 56dcf5e648
commit b51be37c15
4 changed files with 13 additions and 47 deletions

View File

@ -1,3 +1,12 @@
2010-06-01 Miguel de Dios <miguel.dedios@artica.es>
* unix/DEBIAN/prerm: disabled the erase conf file and plugin dir.
* unix/DEBIAN/conffiles: added plugin directory.
* unix/DEBIAN/make_deb_package.sh: cleaned source code, and now make the
plugin empty dir for package builder.
2010-05-20 Ramon Novoa <rnovoa@artica.es>
* unix/DEBIAN/control, unix/DEBIAN/make_deb_package.sh: Renamed

View File

@ -1 +1,2 @@
/etc/pandora/pandora_agent.conf
/etc/pandora/plugins

View File

@ -29,18 +29,12 @@ fi
cd ..
echo "Make a \"temp_package\" temp dir for job."
#~ mkdir -p temp_package/usr/share/pandora_agent
#~ mkdir -p temp_package/var/spool/pandora/data_out
#~ mkdir -p temp_package/var/log/pandora/
#~ mkdir -p temp_package/etc/pandora
#~ mkdir -p temp_package/etc/init.d/
#~ mkdir -p temp_package/usr/bin
mkdir -p temp_package/usr
mkdir -p temp_package/usr/share/pandora_agent/
mkdir -p temp_package/usr/bin/
mkdir -p temp_package/usr/sbin/
mkdir -p temp_package/etc/pandora/
mkdir -p temp_package/etc/pandora/plugins
mkdir -p temp_package/etc/init.d/
mkdir -p temp_package/var/log/pandora/
@ -54,44 +48,6 @@ cp -aRf pandora_agent temp_package/usr/bin/
cp -aRf pandora_agent_daemon temp_package/etc/init.d/pandora_agent_daemon
cp Linux/pandora_agent.conf temp_package/etc/pandora/
#~ PANDORA_LOG=temp_package/var/log/pandora/pandora_agent.log
#~ PANDORA_BIN=temp_package/usr/bin/pandora_agent
#~ PANDORA_HOME=temp_package/usr/share/pandora_agent
#~ TENTACLE=temp_package/usr/bin/tentacle_client
#~ PANDORA_CFG=temp_package/etc/pandora
#~ PANDORA_STARTUP=temp_package/etc/init.d/pandora_agent_daemon
# Create logfile
#~ if [ ! -z "`touch $PANDORA_LOG`" ]
#~ then
#~ echo "Seems to be a problem generating logfile ($PANDORA_LOG) please check it";
#~ exit
#~ else
#~ echo "Creating logfile at $PANDORA_LOG..."
#~ fi
#~ # Copying agent
#~ echo "Copying Pandora FMS Agent to $PANDORA_BIN..."
#~ cp pandora_agent $PANDORA_BIN
#~
#~ echo "Copying Pandora FMS Agent contrib dir to $PANDORA_HOME/..."
#~ cp pandora_agent_daemon $PANDORA_HOME
#~
#~ echo "Copying default agent configuration to $PANDORA_HOME/pandora_agent.conf"
#~ cp pandora_agent.conf $PANDORA_HOME/pandora_agent.conf
#~
#~ echo "Copying Pandora FMS Agent plugins to $PANDORA_HOME/plugins..."
#~ cp -r plugins $PANDORA_HOME
#~
#~ echo "Copying tentacle client to $TENTACLE"
#~ cp tentacle_client $TENTACLE
#~
#~ echo "Linking start-up daemon script at $PANDORA_STARTUP";
#~ cp pandora_agent_daemon $PANDORA_STARTUP
#~
#~ touch $PANDORA_CFG/pandora_agent.conf
echo "Remove the SVN files and other temp files."
for item in `find temp_package`
do

View File

@ -5,8 +5,8 @@ echo Stop Pandora agent daemon
PANDORA_CFG=/etc/pandora
rm -rf $PANDORA_CFG/plugins
rm -rf $PANDORA_CFG/pandora_agent.conf
#rm -rf $PANDORA_CFG/plugins
#rm -rf $PANDORA_CFG/pandora_agent.conf
update-rc.d -f pandora_agent_daemon remove