1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/rainloop_ynh.git synced 2024-09-03 20:16:18 +02:00
This commit is contained in:
scith 2015-10-07 22:02:12 +02:00
parent e637d8045a
commit 9bc9fb67c3
3 changed files with 7 additions and 4 deletions

View file

@ -2,7 +2,7 @@
// Enable RainLoop Api and include index file
$_ENV['RAINLOOP_INCLUDE_AS_API'] = true;
include '/var/www/rainloop/index.php';
include '/var/wwwPATHTOCHANGE/index.php';
// Retrieve email and password
if (isset($_SERVER['HTTP_EMAIL']) && isset($_SERVER['PHP_AUTH_PW'])) {
@ -11,8 +11,8 @@ if (isset($_SERVER['HTTP_EMAIL']) && isset($_SERVER['PHP_AUTH_PW'])) {
$ssoHash = \RainLoop\Api::GetUserSsoHash($email, $password);
// redirect to webmail sso url
\header('Location: https://domain.tld/rainloop/index.php?sso&hash='.$ssoHash);
\header('Location: https://domain.tldPATHTOCHANGE/index.php?sso&hash='.$ssoHash);
}
else {
\header('Location: https://domain.tld/rainloop/index.php');
\header('Location: https://domain.tldPATHTOCHANGE/index.php');
}

View file

@ -71,7 +71,8 @@ sudo cp ../conf/data/domains/domain.tld.ini $final_path/data/_data_/_default_/do
sudo cp ../conf/data/domains/disabled $final_path/data/_data_/_default_/domains/disabled
# SSO
sed -i "s@domain.tld/rainloop@$domain$path@g" ../conf/sso.php
sed -i "s@domain.tld@$domain@g" ../conf/sso.php
sed -i "s@PATHTOCHANGE@$path@g" ../conf/sso.php
sudo cp ../conf/sso.php $final_path/sso.php
# Temporary workaround until someone finds a way to setup NGINX properly...

View file

@ -38,6 +38,8 @@ sudo chown root: $finalphpconf
sudo chmod 644 $finalphpconf
# SSO
sed -i "s@domain.tld@$domain@g" ../conf/sso.php
sed -i "s@PATHTOCHANGE@$path@g" ../conf/sso.php
sudo cp ../conf/sso.php $final_path/sso.php
# Temporary workaround until someone finds a way to setup NGINX properly...