2023-07-01 03:43:54 +02:00
|
|
|
#!/bin/bash
|
|
|
|
cd /var/lib/las_tres/LasTres
|
|
|
|
npm install
|
|
|
|
npx webpack
|
|
|
|
if ! grep PERL5LIB ~/.profile; then
|
|
|
|
perl -Mlocal::lib 2>/dev/null >> ~/.profile ;
|
|
|
|
fi && \
|
|
|
|
source ~/.profile && \
|
|
|
|
rm -fr ~/.cpan && \
|
|
|
|
( echo y && echo reload cpan && echo o conf commit ) | perl -MCPAN -Mlocal::lib -e shell && \
|
|
|
|
perl Build.PL && \
|
|
|
|
./Build installdeps && \
|
|
|
|
if ! [ -f las_tres.yml ]; then
|
|
|
|
cat << EOF > las_tres.yml
|
|
|
|
secrets:
|
|
|
|
- $(pwgen -s 512 1)
|
2023-07-01 04:10:11 +02:00
|
|
|
database:
|
|
|
|
user: $(whoami)
|
2023-07-01 03:43:54 +02:00
|
|
|
dbname: las_tres
|
2023-07-01 04:10:11 +02:00
|
|
|
hypnotoad:
|
|
|
|
listen:
|
|
|
|
- http://*:3000
|
2023-07-01 03:43:54 +02:00
|
|
|
EOF
|
|
|
|
fi && \
|
|
|
|
npx webpack && \
|
|
|
|
bash build_styles.sh && \
|
|
|
|
perl script/las_tres daemon
|