create-config.sh 285 B

1234567
  1. #!/bin/sh
  2. current_site="$(cat "$GLUON_SITEDIR"/site.conf | grep "site_code" | sed "s/site_code =//; s/,//")"
  3. echo "config site 'current'" >> "$DIR"/etc/config/currentsite
  4. echo " option name"$current_site"" >> "$DIR"/etc/config/currentsite
  5. echo "" >> "$DIR"/etc/config/currentsite