uuid
Defacto2 manager of UUID named files
Created in Go, to build from source.
Clone this repository.
git clone https://github.com/Defacto2/uuid.git
Edit the build.sh
shell script to supply build time variables, save then run.
nano build.sh
#!/bin/sh
#
# Build time variables for the database connector configuration
#
# Database name
DB_NAME=defacto2-inno
# Database login username
DB_USER=root
# Path to a text file containing the database login user password
PW_PATH=/path/to/password
# Database login fallback password when text file is not found [should normally be left blank]
DB_PASS=
#
# Build time variables to local directories
#
# Path to file downloads named as UUID
PATH_UUID=/opt/webapp/uuid/
# Path to image previews and thumbnails
PATH_IMAGE=/opt/webapp/images/
# Path to webapp generated files such as JSON/XML
PATH_FILES=/opt/webapp/files/
Now you can run and tryout the package.
./build.sh --version; ./build.sh -h
Install the package.
./build.sh install
Build the package.
./build.sh
Install dependencies.
go get github.com/docopt/docopt-go
go get github.com/dustin/go-humanize
go get github.com/go-sql-driver/mysql