mirror of
https://github.com/YunoHost-Apps/seafile_ynh.git
synced 2024-09-03 20:26:01 +02:00
Add architecture choice and email config
This commit is contained in:
parent
0e4506fabf
commit
8a06c038bc
4 changed files with 21 additions and 2 deletions
|
@ -63,6 +63,15 @@
|
||||||
},
|
},
|
||||||
"choices": ["Yes", "No"],
|
"choices": ["Yes", "No"],
|
||||||
"default": "Yes"
|
"default": "Yes"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "architecture",
|
||||||
|
"ask": {
|
||||||
|
"en": "What is the server architecture?",
|
||||||
|
"fr": "Quelle est l'architecture du serveur ?"
|
||||||
|
},
|
||||||
|
"choices": ["x86-64", "i386", "arm"],
|
||||||
|
"default": "x86-64"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,6 +6,7 @@ server_name=$3
|
||||||
admin=$4
|
admin=$4
|
||||||
admin_password=$5
|
admin_password=$5
|
||||||
is_public=$6
|
is_public=$6
|
||||||
|
architecture=$7
|
||||||
final_path=/var/www/seafile
|
final_path=/var/www/seafile
|
||||||
seafile_data=/home/yunohost.app/seafile-data
|
seafile_data=/home/yunohost.app/seafile-data
|
||||||
seafile_version=4.0.6
|
seafile_version=4.0.6
|
||||||
|
@ -42,9 +43,9 @@ sudo mkdir -p $final_path/installed
|
||||||
sudo mkdir -p $final_path/logs
|
sudo mkdir -p $final_path/logs
|
||||||
sudo mkdir -p $final_path/seafile-data
|
sudo mkdir -p $final_path/seafile-data
|
||||||
sudo mkdir -p $final_path/seafile-server-$seafile_version
|
sudo mkdir -p $final_path/seafile-server-$seafile_version
|
||||||
sudo tar xzf ../sources/'seafile-server_'$seafile_version'_x86-64.tar'
|
sudo tar xzf ../sources/'seafile-server_'$seafile_version'_'$architecture'.tar'
|
||||||
sudo mv seafile-server-$seafile_version/* $final_path/seafile-server-$seafile_version
|
sudo mv seafile-server-$seafile_version/* $final_path/seafile-server-$seafile_version
|
||||||
sudo mv ../sources/'seafile-server_'$seafile_version'_x86-64.tar' $final_path/installed
|
sudo mv ../sources/'seafile-server_'$seafile_version'_'$architecture'.tar' $final_path/installed
|
||||||
|
|
||||||
# Find available ports
|
# Find available ports
|
||||||
findPort 10001
|
findPort 10001
|
||||||
|
@ -83,6 +84,15 @@ echo 'SITE_ROOT = "'$path'/"' | sudo tee -a $final_path/seahub_settings.py
|
||||||
echo 'SERVE_STATIC = False' | sudo tee -a $final_path/seahub_settings.py
|
echo 'SERVE_STATIC = False' | sudo tee -a $final_path/seahub_settings.py
|
||||||
echo 'MEDIA_URL = "'$path'/media/"' | sudo tee -a $final_path/seahub_settings.py
|
echo 'MEDIA_URL = "'$path'/media/"' | sudo tee -a $final_path/seahub_settings.py
|
||||||
|
|
||||||
|
# Email configuration
|
||||||
|
echo 'EMAIL_USE_TLS = False' | sudo tee -a $final_path/seahub_settings.py
|
||||||
|
echo 'EMAIL_HOST = "localhost"' | sudo tee -a $final_path/seahub_settings.py
|
||||||
|
echo 'EMAIL_HOST_USER = "seafile@'$domain'"' | sudo tee -a $final_path/seahub_settings.py
|
||||||
|
echo 'EMAIL_HOST_PASSWORD = ""' | sudo tee -a $final_path/seahub_settings.py
|
||||||
|
echo 'EMAIL_PORT = "25"' | sudo tee -a $final_path/seahub_settings.py
|
||||||
|
echo 'DEFAULT_FROM_EMAIL = "seafile@'$domain'"' | sudo tee -a $final_path/seahub_settings.py
|
||||||
|
echo 'SERVER_EMAIL = "seafile@'$domain'"' | sudo tee -a $final_path/seahub_settings.py
|
||||||
|
|
||||||
# LDAP configuration
|
# LDAP configuration
|
||||||
echo '[LDAP]' | sudo tee -a $final_path/ccnet/ccnet.conf
|
echo '[LDAP]' | sudo tee -a $final_path/ccnet/ccnet.conf
|
||||||
echo 'HOST = ldap://localhost:389' | sudo tee -a $final_path/ccnet/ccnet.conf
|
echo 'HOST = ldap://localhost:389' | sudo tee -a $final_path/ccnet/ccnet.conf
|
||||||
|
|
BIN
sources/seafile-server_4.0.6_arm.tar
Normal file
BIN
sources/seafile-server_4.0.6_arm.tar
Normal file
Binary file not shown.
BIN
sources/seafile-server_4.0.6_i386.tar
Normal file
BIN
sources/seafile-server_4.0.6_i386.tar
Normal file
Binary file not shown.
Loading…
Add table
Reference in a new issue