nakarte

Source code of https://map.sikmir.ru (fork)
git clone git://git.sikmir.ru/nakarte
Log | Files | Refs | LICENSE

services_template.sh (249B)


      1 #!/usr/bin/env bash
      2 
      3 SERVICE=$1
      4 
      5 if [ -z "$SERVICE" ]; then
      6   echo Provide service name
      7   exit 1
      8 fi
      9 
     10 for postfix in with_title without_title private not_exists; do
     11   cp template.json ${SERVICE}_${postfix}.json;
     12   echo "'${SERVICE}_${postfix}'",
     13 done