fork 0k-charms
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.

19 lines
341 B

  1. #!/bin/bash
  2. . lib/common
  3. set -e
  4. domain=$(relation-get domain) || exit 1
  5. location=$DATASTORE/$BASE_SERVICE_NAME/var/www/$domain
  6. if ! [ -e "$location/app/inc/init.php" ]; then
  7. cp -av "$FRAMADATE_CODE/app/inc/"* "$location/app/inc/"
  8. fi
  9. cfg_dir=$(cfg_dir_init) || exit 1
  10. cd "$cfg_dir"
  11. echo "const APP_URL = '$domain';" >> config.php