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:
parent
2a2ef5537a
commit
952b85f3ec
1 changed files with 4 additions and 8 deletions
|
@ -27,8 +27,10 @@ admin_mail=$(sudo yunohost user info $user | grep "mail:" | cut -d' ' -f2)
|
|||
|
||||
# Get code
|
||||
version=$(cat upstream_version)
|
||||
git clone -b "${version}" 'https://github.com/friendica/friendica.git'
|
||||
git clone -b "master" 'https://github.com/friendica/friendica-addons.git'
|
||||
repo_url=$(cat ../conf/repo_url)
|
||||
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 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
|
||||
|
||||
# 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
|
||||
sudo su -c "cat ../conf/conf.php >> $final_path/.htconfig.php"
|
||||
|
||||
|
|
Loading…
Reference in a new issue