17 lines
279 B
Bash
Executable File
17 lines
279 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
if [ ! -d /frontend ]; then
|
|
export GOPROXY="https://goproxy.io"
|
|
cd /frontend-src
|
|
make clean
|
|
make build
|
|
mv build /frontend
|
|
cd ..
|
|
rm -r /frontend-src
|
|
ln -s /data.db /frontend/data.db
|
|
fi
|
|
|
|
cd /frontend
|
|
exec ./frontend --config "/etc/fax/config.yml"
|