Debian Package for server-only deploy of czech accounting system AbraFlexi
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.9 KiB

# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config| = "debian/stretch64"
config.vm.hostname = "flexibee-server"; "forwarded_port", guest: 5434, host: 5434
# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine and only allow access
# via to disable public access
# "forwarded_port", guest: 80, host: 8080, host_ip: ""
# "public_network"
# Share an additional folder to the guest VM. The first argument is
# the path on the host to the actual folder. The second argument is
# the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options.
# config.vm.synced_folder "../data", "/vagrant_data"
# for more information.
config.push.define "atlas" do |push| = "vitexsoftware/flexibee"
config.vm.provision "shell", inline: <<-SHELL
apt-get update
export DEBIAN_FRONTEND="noninteractive"
echo cs_CZ.utf8 UTF-8 >> /etc/locale.gen
export LC_ALL="cs_CZ.UTF-8"
apt-get -y install gdebi-core curl locales mc htop screen net-tools html2text
# CURVER="`curl -s | grep h2 | awk '{gsub("<[^>]*>", "")}1'| awk '{print $2}'`"
# IFS='.' read -r -a array <<< "$CURVER"
# GETURL="${array[0]}.${array[1]}/$CURVER/flexibee_${CURVER}_all.deb"
# wget $GETURL
# PACKAGE=`ls /vagrant/flexibee-server_*_all.deb`
gdebi --n --q `ls /vagrant/flexibee-server_*_all.deb`
# dpkg-reconfigure flexibee
service flexibee status
curl -k -v | html2text