Reorganize, add setup script
This commit is contained in:
parent
a3f59004ea
commit
b9f67ba9ae
0
magicka.strings → dist/magicka.strings
vendored
0
magicka.strings → dist/magicka.strings
vendored
0
www/401.tpl → dist/www/401.tpl
vendored
0
www/401.tpl → dist/www/401.tpl
vendored
0
www/403.tpl → dist/www/403.tpl
vendored
0
www/403.tpl → dist/www/403.tpl
vendored
0
www/404.tpl → dist/www/404.tpl
vendored
0
www/404.tpl → dist/www/404.tpl
vendored
0
www/footer.tpl → dist/www/footer.tpl
vendored
0
www/footer.tpl → dist/www/footer.tpl
vendored
0
www/header.tpl → dist/www/header.tpl
vendored
0
www/header.tpl → dist/www/header.tpl
vendored
0
www/index.tpl → dist/www/index.tpl
vendored
0
www/index.tpl → dist/www/index.tpl
vendored
0
www/mime.types → dist/www/mime.types
vendored
0
www/mime.types → dist/www/mime.types
vendored
Before Width: | Height: | Size: 292 B After Width: | Height: | Size: 292 B |
Before Width: | Height: | Size: 123 KiB After Width: | Height: | Size: 123 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
75
setup.sh
Executable file
75
setup.sh
Executable file
@ -0,0 +1,75 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
printstuff() {
|
||||
YELLOW='\033[0;33m'
|
||||
NC='\033[0m'
|
||||
echo -e "${YELLOW}$1${NC}"
|
||||
}
|
||||
|
||||
USERNAME=`whoami`
|
||||
PWD=`pwd`
|
||||
|
||||
if [ ! -e ./ansis ]; then
|
||||
cp -r dist/ansis .
|
||||
fi
|
||||
|
||||
if [ ! -e ./config ]; then
|
||||
cp -r dist/config .
|
||||
fi
|
||||
|
||||
if [ ! -e ./menus ]; then
|
||||
cp -r dist/menus .
|
||||
fi
|
||||
|
||||
if [ ! -e ./scripts ]; then
|
||||
cp -r dist/scripts .
|
||||
fi
|
||||
|
||||
if [ ! -e ./magicka.strings ]; then
|
||||
ln -s dist/magicka.strings magicka.strings
|
||||
fi
|
||||
|
||||
if [ ! -e ./www ]; then
|
||||
ln -s dist/www www
|
||||
fi
|
||||
|
||||
if [ ! -e ./logs ]; then
|
||||
mkdir logs
|
||||
fi
|
||||
|
||||
if [ ! -e ./msgs ]; then
|
||||
mkdir msgs
|
||||
fi
|
||||
|
||||
if [ ! -e ./files ]; then
|
||||
mkdir -p files/misc
|
||||
fi
|
||||
|
||||
printstuff "Please enter your real first and last name:"
|
||||
|
||||
read firstname lastname
|
||||
|
||||
printstuff "Please enter your user handle:"
|
||||
|
||||
read -e handle
|
||||
|
||||
printstuff "Please enter your location:"
|
||||
|
||||
read -e location
|
||||
|
||||
printstuff "Please enter the name of your BBS:"
|
||||
|
||||
read -e bbsname
|
||||
|
||||
sed -i "s@/home/andrew/MagickaBBS@${PWD}@g" config/bbs.ini
|
||||
sed -i "s/BBS Name = Magicka BBS/BBS Name = ${bbsname}/g" config/bbs.ini
|
||||
sed -i "s/Sysop Name = sysop/Sysop Name = ${handle}/g" config/bbs.ini
|
||||
sed -i "s@/home/andrew/MagickaBBS@${PWD}@g" config/localmail.ini
|
||||
sed -i "s@/home/andrew/MagickaBBS@${PWD}@g" config/filesgen.ini
|
||||
sed -i "s@/home/andrew/MagickaBBS@${PWD}@g" config/illusionnet.ini
|
||||
sed -i "s@/home/andrew/MagickaBBS@${PWD}@g" utils/magiedit/magiedit.sh
|
||||
sed -i "s@/home/andrew/MagickaBBS@${PWD}@g" scripts/login_stanza.lua
|
||||
sed -i "s/MagiChat Server = localhost/; MagiChat Server = localhost/g" config/bbs.ini
|
||||
sed -i "s/Default Tagline = Brought to you by Another Magicka BBS!/Default Tagline = ${bbsname}/g" config/bbs.ini
|
||||
sed -i "s/echomail.out/mail.out/g" config/bbs.ini
|
||||
sed -i "s/netmail.out/mail.out/g" config/bbs.ini
|
Reference in New Issue
Block a user