mirror of
https://github.com/YunoHost-Apps/friendica_ynh.git
synced 2024-09-03 18:36:14 +02:00
dowload des addons
This commit is contained in:
parent
dabca99fd4
commit
40bd9d9cc7
1 changed files with 7 additions and 8 deletions
|
@ -28,7 +28,8 @@ 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'
|
git clone -b "${version}" 'https://github.com/friendica/friendica.git'
|
||||||
sudo chown -R admin friendica
|
git clone -b "master" 'https://github.com/friendica/friendica-addons.git'
|
||||||
|
sudo mv friendica-addons friendica/addon
|
||||||
sudo cp -ar friendica $final_path
|
sudo cp -ar friendica $final_path
|
||||||
|
|
||||||
# Generate random password
|
# Generate random password
|
||||||
|
@ -65,14 +66,12 @@ 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
|
# 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
|
||||||
|
|
||||||
wget -O ldapauth.php https://raw.githubusercontent.com/friendica/friendica-addons/master/ldapauth/ldapauth.php > /dev/null 2>&1
|
# addon config
|
||||||
echo "Copy ldapauth.php to $final_path/addon/ldapauth..."
|
|
||||||
mkdir -p $final_path/addon/ldapauth
|
|
||||||
sudo cp ldapauth.php $final_path/addon/ldapauth
|
|
||||||
|
|
||||||
# Ldap auth config
|
|
||||||
|
|
||||||
sudo su -c "cat ../conf/conf.php >> $final_path/.htconfig.php"
|
sudo su -c "cat ../conf/conf.php >> $final_path/.htconfig.php"
|
||||||
|
|
||||||
# set permission
|
# set permission
|
||||||
|
|
Loading…
Add table
Reference in a new issue