Prepare V0.2
This commit is contained in:
0
dbp/config-v2.sh
Normal file
0
dbp/config-v2.sh
Normal file
@@ -3,14 +3,14 @@ echo "To activate the Disconnected-by-peer scripts for Mystic" >> ${DBP_INFO}
|
||||
echo "you have to activate it in the Mystic Event Editor" >> ${DBP_INFO}
|
||||
echo "Below is a suggested configuration" >> ${DBP_INFO}
|
||||
echo "" >> ${DBP_INFO}
|
||||
echo "Active | Description | Event Type | Exec Hour:Min | Shell | Prefix | Semaphore | Kill-After | Warning | SMTWTFS" >> ${DBP_INFO}
|
||||
echo "-------+--------------------------------+------------+---------------+--------------------------------------------------+--------+--------------------------+--------------------------+---------+--------" >> ${DBP_INFO}
|
||||
echo "Yes | Daily Tasks | Shell | 00:00 | cron -f dbp.ini | Yes | | | 0 | SMTWTFS" >> ${DBP_INFO}
|
||||
echo "Yes | Nightly Maintenance | Shell | 04:00 | mutil maint.ini | Yes | | | 0 | SMTWTFS" >> ${DBP_INFO}
|
||||
echo "Yes | Firewall Ban | IP Blocked | 00:00 | banunban -f dbp.ini -d banip -i @IP@ | Yes | | | 0 | -------" >> ${DBP_INFO}
|
||||
echo "Yes | Sending Outbound Echo/Net Mail | Semaphore | 00:00 | mutil mailout.ini|mis poll send|mutil mailin.ini | Yes | echomail.out|netmail.out | echomail.out|netmail.out | 0 | -------" >> ${DBP_INFO}
|
||||
echo "Yes | Toss Incomming Echo/Net Mail | Semaphore | 00:00 | mutil mailin.ini | Yes | echomail.in|netmail.in | echomail.in|netmail.in | 0 | -------" >> ${DBP_INFO}
|
||||
echo "Yes | Poll Echomail | Inteval | 01:05 | mis poll forced|mutil mailin.ini | Yes | | | | SMTWTFS" >> ${DBP_INFO}
|
||||
echo "Active | Description | Event Type | Exec Hh:Mm | Shell | Prefix | Semaphore | Kill-After | Warning | SMTWTFS" >> ${DBP_INFO}
|
||||
echo "-------+---------------------------+------------+------------+------------------------------------------+--------+--------------------------+--------------------------+---------+--------" >> ${DBP_INFO}
|
||||
echo "Yes | Daily Tasks | Shell | 00:00 | cron -f dbp.ini | Yes | | | 0 | SMTWTFS" >> ${DBP_INFO}
|
||||
echo "Yes | Nightly Maintenance | Shell | 04:00 | mutil maint | Yes | | | 0 | SMTWTFS" >> ${DBP_INFO}
|
||||
echo "Yes | Firewall Ban | IP Blocked | 00:00 | banunban -f dbp.ini -d banip -i @IP@ | Yes | | | 0 | -------" >> ${DBP_INFO}
|
||||
echo "Yes | Sending Out Echo/Net Mail | Semaphore | 00:00 | mutil mailout|mis poll send|mutil mailin | Yes | echomail.out|netmail.out | echomail.out|netmail.out | 0 | -------" >> ${DBP_INFO}
|
||||
echo "Yes | Toss Incom Echo/Net Mail | Semaphore | 00:00 | mutil mailin | Yes | echomail.in|netmail.in | echomail.in|netmail.in | 0 | -------" >> ${DBP_INFO}
|
||||
echo "Yes | Poll Echomail | Inteval | 01:05 | mis poll forced|mutil mailin | Yes | | | | SMTWTFS" >> ${DBP_INFO}
|
||||
echo "" >> ${DBP_INFO}
|
||||
echo "Bevore activating any services you have to configure the ${MYSTIC_DIR}/dbp.ini file to your needs and installed services" >> ${DBP_INFO}
|
||||
echo "then you can start the ./cron -f dbp.ini as the mystic user" >> ${DBP_INFO}
|
||||
|
||||
18
dbp/info-v2.sh
Normal file
18
dbp/info-v2.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
echo "" >> ${DBP_INFO}
|
||||
echo "To activate the Disconnected-by-peer scripts for Mystic" >> ${DBP_INFO}
|
||||
echo "you have to activate it in the Mystic Event Editor" >> ${DBP_INFO}
|
||||
echo "Below is a suggested configuration" >> ${DBP_INFO}
|
||||
echo "" >> ${DBP_INFO}
|
||||
echo "Active | Description | Event Type | Exec Hh:Mm | Shell | Prefix | Semaphore | Kill-After | Warning | SMTWTFS" >> ${DBP_INFO}
|
||||
echo "-------+---------------------------+------------+------------+------------------------------------------+--------+--------------------------+--------------------------+---------+--------" >> ${DBP_INFO}
|
||||
echo "Yes | Daily Tasks | Shell | 00:00 | cron -f dbp.ini | Yes | | | 0 | SMTWTFS" >> ${DBP_INFO}
|
||||
echo "Yes | Nightly Maintenance | Shell | 04:00 | mutil maint | Yes | | | 0 | SMTWTFS" >> ${DBP_INFO}
|
||||
echo "Yes | Firewall Ban | IP Blocked | 00:00 | banunban -f dbp.ini -d banip -i @IP@ | Yes | | | 0 | -------" >> ${DBP_INFO}
|
||||
echo "Yes | Sending Out Echo/Net Mail | Semaphore | 00:00 | mutil mailout|mis poll send|mutil mailin | Yes | echomail.out|netmail.out | echomail.out|netmail.out | 0 | -------" >> ${DBP_INFO}
|
||||
echo "Yes | Toss Incom Echo/Net Mail | Semaphore | 00:00 | mutil mailin | Yes | echomail.in|netmail.in | echomail.in|netmail.in | 0 | -------" >> ${DBP_INFO}
|
||||
echo "Yes | Poll Echomail | Inteval | 01:05 | mis poll forced|mutil mailin | Yes | | | | SMTWTFS" >> ${DBP_INFO}
|
||||
echo "" >> ${DBP_INFO}
|
||||
echo "Bevore activating any services you have to configure the ${MYSTIC_DIR}/dbp.ini file to your needs and installed services" >> ${DBP_INFO}
|
||||
echo "then you can start the ./cron -f dbp.ini as the mystic user" >> ${DBP_INFO}
|
||||
echo "" >> ${DBP_INFO}
|
||||
echo "==============================================================================================================" >> ${DBP_INFO}
|
||||
24
dbp/install-v2.sh
Normal file
24
dbp/install-v2.sh
Normal file
@@ -0,0 +1,24 @@
|
||||
if [ $DBPSCRIPTS = "Yes" ]; then
|
||||
msg_info "Installing bbs.disconnected-by-peer.at Scripts Dependencies for ${APP}"
|
||||
wget -N https://ftp.disconnected-by-peer.at/IniMod/IniMod_linux_${INIMOD_ARCH}.zip -O $MSTEMPDIR/IniMod_linux_${INIMOD_ARCH}.zip &>/dev/null
|
||||
rm -rf $MSTEMPDIR/IniMod_linux_${INIMOD_ARCH} &>/dev/null
|
||||
mkdir -p $MSTEMPDIR/IniMod_linux_${INIMOD_ARCH} &>/dev/null
|
||||
pushd $MSTEMPDIR/IniMod_linux_${INIMOD_ARCH} &>/dev/null
|
||||
unzip ../IniMod_linux_${INIMOD_ARCH}.zip &>/dev/null
|
||||
cp inimod ${MYSTIC_DIR}
|
||||
chmod +x ${MYSTIC_DIR}/inimod
|
||||
cp README.txt ${MYSTIC_DIR}/docs/inimod_README.txt
|
||||
popd &>/dev/null
|
||||
msg_ok "Installing bbs.disconnected-by-peer.at Scripts Dependencies for ${APP}"
|
||||
|
||||
msg_info "Installing DbP Cron/banip/unbanip Scripts"
|
||||
pushd $MSTEMPDIR/mystic/dbp &>/dev/null
|
||||
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" cron.sh > ${MYSTIC_DIR}/cron
|
||||
chmod +x ${MYSTIC_DIR}/cron
|
||||
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" banunban.sh > ${MYSTIC_DIR}/banunban
|
||||
chmod +x ${MYSTIC_DIR}/banunban
|
||||
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" dbp.ini > ${MYSTIC_DIR}/dbp.ini
|
||||
popd &>/dev/null
|
||||
msg_ok "Installing DbP Cron/banip/unbanip Scripts"
|
||||
|
||||
fi
|
||||
8
dbp/prompt-v2.sh
Normal file
8
dbp/prompt-v2.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
DBPSCRIPTS=$(whiptail --title "Add The Disconnected by Peer Support Script" --radiolist --cancel-button Exit-Script "Choose Yes No" 8 58 2 \
|
||||
"Yes" "Add DbP Script" ON \
|
||||
"No" "Don't add DbP Script" OFF \
|
||||
3>&1 1>&2 2>&3)
|
||||
exitstatus=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Add DbP Support Script: ${BGN}$DBPSCRIPTS${CL}"
|
||||
fi
|
||||
3
dbp/update.sh
Normal file
3
dbp/update.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
for file in $(ls *-v1.sh) ; do
|
||||
cp -- "${file}" "$(echo "${file}" | sed -e 's/v1\.sh/v2\.sh/')"
|
||||
done
|
||||
Reference in New Issue
Block a user