This commit is contained in:
Josué Tille 2018-01-30 11:32:02 +01:00
parent a7596a739e
commit 8209d4fbac
3 changed files with 9 additions and 4 deletions

View file

@ -11,9 +11,11 @@ expect "for the admin account?"
send "$admin_email\r"; send "$admin_email\r";
expect "for the admin account?" expect "for the admin account?"
send "$admin_password\r"; send {__ADMIN_PASSWORD__};
send '\r';
expect "Enter the" expect "Enter the"
send "$admin_password\r"; send {__ADMIN_PASSWORD__};
send '\r';
interact interact

View file

@ -19,7 +19,7 @@
"mysql" "mysql"
], ],
"requirements": { "requirements": {
"yunohost": ">= 2.7.7" "yunohost": ">= 2.7.9"
}, },
"arguments": { "arguments": {
"install": [ "install": [

View file

@ -137,7 +137,10 @@ chown -R $seafile_user:$seafile_user $seafile_data
# Start seafile, seahub and populate admin account # Start seafile, seahub and populate admin account
su - $seafile_user -s /bin/bash -c "$final_path/seafile-server-$seafile_version/seafile.sh start" su - $seafile_user -s /bin/bash -c "$final_path/seafile-server-$seafile_version/seafile.sh start"
su - $seafile_user -s /bin/bash -c "$final_path/first_launch.exp $final_path/seafile-server-$seafile_version $admin_email $admin_password" # We escape all char witch needed.
ynh_replace_special_string "__ADMIN_PASSWORD__" $admin_password "$final_path/first_launch.exp"
su - $seafile_user -s /bin/bash -c "$final_path/first_launch.exp $final_path/seafile-server-$seafile_version $admin_email"
ynh_secure_remove "$final_path/first_launch.exp"
# Add sso config to unprotect domain.tld/seafhttp + domain.tld/seafdav do in /etc/ssowat/conf.json.persistent # Add sso config to unprotect domain.tld/seafhttp + domain.tld/seafdav do in /etc/ssowat/conf.json.persistent
cp ../conf/add_sso_conf.py $final_path cp ../conf/add_sso_conf.py $final_path