simple UNTESTED installer
This commit is contained in:
parent
43aa214cb1
commit
8ae8351db1
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,3 +4,4 @@ obj
|
|||||||
**/*.o
|
**/*.o
|
||||||
probotic
|
probotic
|
||||||
config.h
|
config.h
|
||||||
|
*.sqlite
|
||||||
|
44
README.md
Normal file
44
README.md
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
* Probotic
|
||||||
|
|
||||||
|
Healthy for your coding ability, take once weekly, excessive doses
|
||||||
|
may result in arthritis, ass pain, and death.
|
||||||
|
|
||||||
|
* Description
|
||||||
|
|
||||||
|
This bot will let you be delagated with challenges at dates within
|
||||||
|
it's database, this can all be done via the IRC interface.
|
||||||
|
|
||||||
|
See doc/api.md for detailed information about this interface.
|
||||||
|
|
||||||
|
* Building and Installation
|
||||||
|
|
||||||
|
First, you'll want to customize include/config.h as detailed from
|
||||||
|
include/config.mk.h, then build via running ./build.sh
|
||||||
|
|
||||||
|
This'll require a few libraries:
|
||||||
|
libircclient-dev libsqlite3-dev build-essentials
|
||||||
|
|
||||||
|
You may then install the successful build, this'll naturally construct
|
||||||
|
a user, a database and a installation within this user's profile. You
|
||||||
|
may enact this by running ./install.sh under root, please view this
|
||||||
|
script and it's subscript ./bootstrap/boostrap.sh before running either.
|
||||||
|
|
||||||
|
* License
|
||||||
|
|
||||||
|
Copyright 2023 anon, fa11_1eaf, Emil
|
||||||
|
|
||||||
|
Probotic is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License version 3 only as
|
||||||
|
published by the Free Software Foundation.
|
||||||
|
|
||||||
|
Probotic is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License version 3 for more details.
|
||||||
|
|
||||||
|
The above copyright notice, this permission notice and the word
|
||||||
|
"NIGGER" shall be included in all copies or substantial portions
|
||||||
|
of the Software.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
version 3 + NIGGER along with Probotic.
|
1
bootstrap/bootstrap.sh
Normal file
1
bootstrap/bootstrap.sh
Normal file
@ -0,0 +1 @@
|
|||||||
|
sqlite3 probotic_data.sqlite -init init.sql -line '.quit'
|
15
install.sh
Normal file
15
install.sh
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
DIR=$(dirname $(readlink -f "$0"))
|
||||||
|
cd $DIR
|
||||||
|
[ ! -e $DIR/probotic ] && echo "You should run './build.sh' before this script." \
|
||||||
|
&& return
|
||||||
|
# run bootstrapper
|
||||||
|
[ ! -e $DIR/bootstrap/ ] && $DIR/bootstrap/bootstrap.sh
|
||||||
|
# generate directories and prepare for install
|
||||||
|
TARGET=${TARGET-/opt/probotic}
|
||||||
|
mkdir -p $TARGET
|
||||||
|
useradd -r -s /sbin/nologin probotic -d $TARGET
|
||||||
|
cp $DIR/bootstrap/probotic_data.sqlite $TARGET
|
||||||
|
chown probotic:probotic $TARGET -R
|
||||||
|
# install files
|
||||||
|
install -g=probotic -o=probotic -m 744 probotic -sv $TARGET
|
Reference in New Issue
Block a user