1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/friendica_ynh.git synced 2024-09-03 18:36:14 +02:00

update for multi instance function

This commit is contained in:
Développeur égaré 2015-03-09 16:37:10 +01:00
parent 2a2ef5537a
commit 952b85f3ec

View file

@ -27,8 +27,10 @@ admin_mail=$(sudo yunohost user info $user | grep "mail:" | cut -d' ' -f2)
# Get code # Get code
version=$(cat upstream_version) version=$(cat upstream_version)
git clone -b "${version}" 'https://github.com/friendica/friendica.git' repo_url=$(cat ../conf/repo_url)
git clone -b "master" 'https://github.com/friendica/friendica-addons.git' repo_url_addons=$(cat ../conf/repo_url_addons)
git clone -b "${version}" $repo_url friendica
git clone -b "master" $repo_url_addons friendica-addons
sudo mv friendica-addons friendica/addon sudo mv friendica-addons friendica/addon
sudo cp -ar friendica $final_path sudo cp -ar friendica $final_path
@ -65,12 +67,6 @@ sudo sed -i "s/\['admin_email'\] = '';/\['admin_email'\] = '$admin_mail';/g" $fi
mysql -u $db_user -p$db_pwd $db_user < $final_path/database.sql mysql -u $db_user -p$db_pwd $db_user < $final_path/database.sql
# Ldap auth
#wget -O ldapauth.php https://raw.githubusercontent.com/friendica/friendica-addons/master/ldapauth/ldapauth.php > /dev/null 2>&1
#echo "Copy ldapauth.php to $final_path/addon/ldapauth..."
#mkdir -p $final_path/addon/ldapauth
#sudo cp ldapauth.php $final_path/addon/ldapauth
# addon config # addon config
sudo su -c "cat ../conf/conf.php >> $final_path/.htconfig.php" sudo su -c "cat ../conf/conf.php >> $final_path/.htconfig.php"