Blame
Date:
Mon Sep 21 12:29:42 2020 UTC
Message:
Improve error message when not admin
01
2020-09-08
jrmu
USERNAME="botnow"
02
2020-09-08
jrmu
HOMEDIR="/home/botnow"
03
2020-09-08
jrmu
HTDOCS="/var/www/htdocs/botnow"
04
2020-09-08
jrmu
DATABASE="/var/www/botnow/"
05
2020-09-08
jrmu
ZONES="/var/nsd/zones/master/"
06
2020-09-16
jrmu
ZNCUSER="znc"
07
2020-09-16
jrmu
ZNCDIR="/home/znc/home/znc/"
08
2020-09-08
jrmu
09
2020-09-21
jrmu
botnow: figlet php sqlite
10
2020-09-08
jrmu
useradd -m -g =uid -c ${USERNAME} -d ${HOMEDIR} -s /bin/ksh ${USERNAME}
11
2020-09-08
jrmu
mkdir ${DATABASE}
12
2020-09-08
jrmu
touch ${DATABASE}/www
13
2020-09-08
jrmu
chown -R www:${USERNAME} ${DATABASE}
14
2020-09-08
jrmu
chmod -R ug+rw ${DATABASE}
15
2020-09-08
jrmu
mkdir ${HTDOCS}
16
2020-09-08
jrmu
cp words ${HTDOCS}/
17
2020-09-08
jrmu
cp register.php ${HTDOCS}/
18
2020-09-08
jrmu
chown -R www:daemon ${HTDOCS}
19
2020-09-08
jrmu
usermod -G daemon ${USERNAME}
20
2020-09-08
jrmu
chown -R _nsd:daemon ${ZONES}
21
2020-09-13
jrmu
chmod ug+rwx ${ZONES}
22
2020-09-21
jrmu
chmod ug+rw ${ZONES}/*
23
2020-09-21
jrmu
echo "permit nopass ${USERNAME} as _nsd cmd nsd-control" >> /etc/doas.conf
24
2020-09-08
jrmu
cp register.php ${HTDOCS}/
25
2020-09-21
jrmu
cp LICENSE README botnow.pl makefile networks register.php words ${HOMEDIR}/
26
2020-09-08
jrmu
chown -R ${USERNAME}:${USERNAME} ${HOMEDIR}
27
2020-09-08
jrmu
chmod u+x ${HOMEDIR}/botnow.pl
28
2020-09-16
jrmu
chown -R ${ZNCUSER}:daemon ${ZNCDIR}
29
2020-09-16
jrmu
chmod -R ug+r ${ZNCDIR}
30
2020-09-16
jrmu
find ${ZNCDIR} -type d -exec chmod ug+rx {} +
31
2020-09-08
jrmu
echo "Installation complete. To run botnow, type $ ./botnow.pl"
32
2020-09-08
jrmu
figlet:
33
2020-09-08
jrmu
pkg_add figlet-2.2.5
34
2020-09-08
jrmu
35
2020-09-08
jrmu
php:
36
2020-09-08
jrmu
pkg_add php-7.4.10
37
2020-09-08
jrmu
rcctl enable php74_fpm
38
2020-09-08
jrmu
rcctl restart php74_fpm
39
2020-09-08
jrmu
rcctl enable httpd
40
2020-09-08
jrmu
rcctl restart httpd
41
2020-09-08
jrmu
42
2020-09-16
jrmu
sqlite:
43
2020-09-21
jrmu
pkg_add p5-DBI
44
2020-09-16
jrmu
pkg_add p5-DBD-SQLite
45
2020-09-16
jrmu
pkg_add sqlite3
46
2020-09-21
jrmu
pkg_add p5-Class-DBI-SQLite-0.11p1