Skip to content

Commit 7a04488

Browse files
committed
Merge branch 'disable_shoutbox' into development
2 parents de9df8d + 5b106cf commit 7a04488

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

customization/bin/hooks/hook_piratebox_start_done.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,10 @@ if [ "$FTP_ENABLED" = "yes" ] ; then
4444

4545
fi
4646

47+
if [ "$SHOUTBOX_ENABLED" == "no" ] ; then
48+
# If the shoutbox is disabled, we remove the writable flag
49+
echo -n "Making shoutbox readonly..."
50+
chmod a-w $CHATFILE
51+
echo "done"
52+
fi
53+

customization/bin/hooks/hook_piratebox_stop.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ if [ -e "$PROFTPD_PID" ]; then
2222
kill $(cat $PROFTPD_PID)
2323
echo $?
2424
rm $PROFTPD_PID
25-
fi
25+
fi
26+

customization/conf/hook_custom.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@ WWW_CONTENT="$SHARE_FOLDER/Content"
1111
FTP_ENABLED="yes"
1212
PROFTPD_CONFIG_FILE="$PIRATEBOX_FOLDER/conf/ftp/proftpd.conf"
1313
PROFTPD_PID="$PIRATEBOX_FOLDER/tmp/proftpd.pid"
14+
15+
16+
### Shoutbox
17+
SHOUTBOX_ENABLED="yes"

0 commit comments

Comments
 (0)