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

Fixed multi-instance

This commit is contained in:
anmol26s 2018-06-08 14:23:10 +05:30
parent 00995dc504
commit 811ad60b0a
3 changed files with 4 additions and 4 deletions

View file

@ -107,7 +107,7 @@ ynh_add_nginx_config
# configure friendica # configure friendica
sudo cp /var/www/friendica/htconfig.php /var/www/friendica/.htconfig.php sudo cp "/var/www/$app/htconfig.php" "/var/www/$app/.htconfig.php"
ynh_replace_string "your.mysqlhost.com" "localhost" "$final_path/.htconfig.php" ynh_replace_string "your.mysqlhost.com" "localhost" "$final_path/.htconfig.php"
ynh_replace_string "mysqlusername" "$db_name" "$final_path/.htconfig.php" ynh_replace_string "mysqlusername" "$db_name" "$final_path/.htconfig.php"
ynh_replace_string "mysqldatabasename" "$db_name" "$final_path/.htconfig.php" ynh_replace_string "mysqldatabasename" "$db_name" "$final_path/.htconfig.php"
@ -157,7 +157,7 @@ sudo cp ../conf/poller-cron /etc/cron.d/$app
ynh_store_file_checksum "$final_path/.htconfig.php" ynh_store_file_checksum "$final_path/.htconfig.php"
# Run composer # Run composer
cd $final_path && sudo php bin/composer.phar install (cd $final_path && sudo php bin/composer.phar install)
#================================================= #=================================================
# SETUP SSOWAT # SETUP SSOWAT

View file

@ -95,7 +95,7 @@ sudo chmod -R 777 $final_path/view/smarty3
ynh_restore_file "/etc/cron.d/$app" ynh_restore_file "/etc/cron.d/$app"
# Run composer # Run composer
cd $final_path && sudo php bin/composer.phar install (cd $final_path && sudo php bin/composer.phar install)
# unprotected_uris allows SSO credentials to be passed anyway. # unprotected_uris allows SSO credentials to be passed anyway.
ynh_app_setting_set $app unprotected_uris "/" ynh_app_setting_set $app unprotected_uris "/"

View file

@ -104,7 +104,7 @@ sed -i "s@YNH_WWW_PATH@$final_path@g" ../conf/poller-cron
sudo cp ../conf/poller-cron /etc/cron.d/$app sudo cp ../conf/poller-cron /etc/cron.d/$app
# Run composer # Run composer
cd $final_path && sudo php bin/composer.phar install (cd $final_path && sudo php bin/composer.phar install)
#================================================= #=================================================
# SETUP SSOWAT # SETUP SSOWAT