mirror of
https://github.com/YunoHost-Apps/seafile_ynh.git
synced 2024-09-03 20:26:01 +02:00
Fix issue #30
This commit is contained in:
parent
a7596a739e
commit
8209d4fbac
3 changed files with 9 additions and 4 deletions
|
@ -11,9 +11,11 @@ expect "for the admin account?"
|
|||
send "$admin_email\r";
|
||||
|
||||
expect "for the admin account?"
|
||||
send "$admin_password\r";
|
||||
send {__ADMIN_PASSWORD__};
|
||||
send '\r';
|
||||
|
||||
expect "Enter the"
|
||||
send "$admin_password\r";
|
||||
send {__ADMIN_PASSWORD__};
|
||||
send '\r';
|
||||
|
||||
interact
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
"mysql"
|
||||
],
|
||||
"requirements": {
|
||||
"yunohost": ">= 2.7.7"
|
||||
"yunohost": ">= 2.7.9"
|
||||
},
|
||||
"arguments": {
|
||||
"install": [
|
||||
|
|
|
@ -137,7 +137,10 @@ chown -R $seafile_user:$seafile_user $seafile_data
|
|||
|
||||
# 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/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
|
||||
cp ../conf/add_sso_conf.py $final_path
|
||||
|
|
Loading…
Add table
Reference in a new issue