@@ -5,13 +5,13 @@ domain=$1
5
5
path=$2
6
6
7
7
# Check domain/path availability
8
- sudo yunohost app checkurl $domain$path -a openid
8
+ sudo yunohost app checkurl $domain$path -a openidldap
9
9
if [[ ! $? -eq 0 ]]; then
10
10
exit 1
11
11
fi
12
12
13
13
# Copy files to the right place
14
- final_path=/var/www/openid
14
+ final_path=/var/www/openidldap
15
15
16
16
# owner=julienmalik
17
17
# repo=openid-ldap
@@ -25,20 +25,20 @@ sudo cp -a ../sources/* $final_path
25
25
26
26
# Extract default language and timezone that will be provided unless they are by LDAP
27
27
ynh_lang=sudo bash -c " echo $LANG | cut -d '_' -f 1"
28
- sudo sed -i " s/ YNH_DFT_LANG/ $ynh_lang / g" $final_path /ldap.php
29
- ynh_timezone=` cat /etc/timezone`
30
- sudo sed -i " s/ YNH_DFT_TIMEZONE/ $ynh_timezone / g" $final_path /ldap.php
28
+ sudo sed -i " s@ YNH_DFT_LANG@ $ynh_lang @ g" $final_path /ldap.php
29
+ ynh_timezone=$( cat /etc/timezone)
30
+ sudo sed -i " s@ YNH_DFT_TIMEZONE@ $ynh_timezone @ g" $final_path /ldap.php
31
31
32
32
# Nginx config
33
33
sudo sed -i " s@YNH_PATH@$path @g" ../conf/nginx.conf
34
- sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain .d/openid .conf
34
+ sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain .d/openidldap .conf
35
35
36
36
# Init log file
37
- sudo rm -f /var/log/openid
38
- sudo touch /var/log/openid
39
- sudo chown www-data: /var/log/openid
37
+ sudo rm -f /var/log/openidldap
38
+ sudo touch /var/log/openidldap
39
+ sudo chown www-data: /var/log/openidldap
40
40
41
41
# Reload Nginx and regenerate SSOwat conf
42
42
sudo service nginx reload
43
- sudo yunohost app setting openid skipped_uris -v " /"
43
+ sudo yunohost app setting openidldap skipped_uris -v " /"
44
44
sudo yunohost app ssowatconf
0 commit comments