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

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