#!/bin/bash # Installation process # Create in apxtowns a town-nations # wget https://{url of an existing apxtri}/setup.sh # chmode +x setup.sh # ./setup.sh mode(dev|prod) url() ) # mode=$1 url=$2 git clone https://gitea.ndda.fr/apxtri/adminapi #wget https://testwall-ants.ndda.fr/adminapi/setup.apxtri.tar.gz wget https://testwall-ants.ndda.fr/adminapi/setup.objects.tar.gz tar -xzvf setup.objects.tar.gz -C . -p && rm setup.objects.tar.gz mkdir -p adminapi/objects/persons/{itm,idx} mkdir -p adminapi/{tmp,logs} mkdir adminapi/logs/nginx cd adminapi yarn install yarn dev