Skip to content

Commit 632fb98

Browse files
committed
Create updates.sh
-Add new script to be run Daily on cron, which will update IRC4Fun's InspIRCd servers and contrib modules.
1 parent 2bad154 commit 632fb98

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

tools/updates.sh

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/bin/sh
2+
3+
# This is the updates script for IRC4Fun servers, allowing for quick
4+
# and easy git updates and even installation of InspIRCd contrib
5+
# modules.
6+
#
7+
# This bash script should be placed in the user's home directory,
8+
# outside of the inspircd installation folder.
9+
10+
# The location of the InspIRCd config directory.
11+
INSPIRCD_DIR="/home/user/inspircd4/"
12+
13+
# Enter the InspIRCd directory
14+
cd ${INSPIRCD_DIR}
15+
16+
# Use 'git pull' to grab any updates to InspIRCd from IRC4Fun's
17+
# Github.
18+
git pull
19+
20+
# Update any contrib modules that have updates...
21+
./modulemanager update
22+
23+
# We have to now run ./configure to properly update the
24+
# version and version-HASH.
25+
./configure --disable-interactive --development
26+
27+
# Now for the finale -- build and install the updates.
28+
make ; make install
29+

0 commit comments

Comments
 (0)