mirror of
https://codeberg.org/scip/note.git
synced 2025-12-17 20:51:02 +01:00
20 lines
420 B
Bash
20 lines
420 B
Bash
|
|
#!/bin/sh
|
||
|
|
# installs note
|
||
|
|
|
||
|
|
echo "Welcome to note `cat VERSION` installation."
|
||
|
|
echo "the install script will ask you a view questions,"
|
||
|
|
echo "make sure to answer them correctly!"
|
||
|
|
echo
|
||
|
|
|
||
|
|
/bin/echo -n "creating the note database..."
|
||
|
|
NAME="_note"
|
||
|
|
DBNAME="$USER$NAME"
|
||
|
|
echo "DBNAME=$DBNAME"
|
||
|
|
mysqladmin create $DBNAME
|
||
|
|
echo "done."
|
||
|
|
/bin/echo -n "creating the table structure using defaults..."
|
||
|
|
mysql $DBNAME < sql
|
||
|
|
echo "done."
|
||
|
|
|
||
|
|
|