blob: 06683030dd62a4eb2aca1a05be9c497093f746ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/sh
DST=${RPM_INSTALL_PREFIX}/sapp/
mkdir -p ${DST}/stellar_plugin
touch ${DST}/stellar_plugin/spec.toml
if ! grep -q '^\./plug/stellar_plugin/ftp_decoder/ftp_decoder.so' "${DST}/stellar_plugin/spec.toml"; then
echo -e "\n" >> "${DST}/stellar_plugin/spec.toml"
echo -e "[[plugin]]" >> "${DST}/stellar_plugin/spec.toml"
echo -e "path = \"./stellar_plugin/ftp_decoder/ftp_decoder.so\"" >> "${DST}/stellar_plugin/spec.toml"
echo -e "init = \"FTP_ONLOAD\"" >> "${DST}/stellar_plugin/spec.toml"
echo -e "exit = \"FTP_UNLOAD\"" >> "${DST}/stellar_plugin/spec.toml"
echo -e "\n" >> "${DST}/stellar_plugin/spec.toml"
fi
|