diff --git a/scripts/install b/scripts/install index c5ce308..8d4feb1 100644 --- a/scripts/install +++ b/scripts/install @@ -72,11 +72,11 @@ sudo php ../conf/config.php --index="$rainloop_path/index.php" --password="$pass # Add default domain configs by looping through all the domains already added sudo mkdir -p $rainloop_path/data/_data_/_default_/domains/ -# get list of ldap domaine -domains=`ldapsearch -LLL -x -b ou=domains,dc=yunohost,dc=org -s one "objectclass=top" virtualdomain | grep -v "dn:" | sed "s/virtualdomain://" ` -for domain in $domains ; do - sudo cp ../conf/data/domains/domain.tld.ini $rainloop_path/data/_data_/_default_/domains/$domain.ini - sudo sed -i "s@domain.tld@$domain@g" $rainloop_path/data/_data_/_default_/domains/$domain.ini +# get list of ldap domains +alldomains=`ldapsearch -LLL -x -b ou=domains,dc=yunohost,dc=org -s one "objectclass=top" virtualdomain | grep -v "dn:" | sed "s/virtualdomain://" ` +for alldomain in $alldomains ; do + sudo cp ../conf/data/domains/domain.tld.ini $rainloop_path/data/_data_/_default_/domains/$alldomain.ini + sudo sed -i "s@domain.tld@$alldomain@g" $rainloop_path/data/_data_/_default_/domains/$alldomain.ini done sudo cp ../conf/data/domains/disabled $rainloop_path/data/_data_/_default_/domains/disabled