mirror of
https://github.com/YunoHost-Apps/seafile_ynh.git
synced 2024-09-03 20:26:01 +02:00
parent
399f3560e1
commit
9df8e5b078
4 changed files with 23 additions and 2 deletions
|
@ -63,6 +63,15 @@
|
|||
},
|
||||
"choices": ["Yes", "No"],
|
||||
"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_password=$5
|
||||
is_public=$6
|
||||
architecture=$7
|
||||
final_path=/var/www/seafile
|
||||
seafile_data=/home/yunohost.app/seafile-data
|
||||
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/seafile-data
|
||||
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 ../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
|
||||
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 '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
|
||||
echo '[LDAP]' | sudo tee -a $final_path/ccnet/ccnet.conf
|
||||
echo 'HOST = ldap://localhost:389' | sudo tee -a $final_path/ccnet/ccnet.conf
|
||||
|
|
1
sources/seafile-server_4.0.6_arm.tar.REMOVED.git-id
Normal file
1
sources/seafile-server_4.0.6_arm.tar.REMOVED.git-id
Normal file
|
@ -0,0 +1 @@
|
|||
975d76fae7e7109f9ff1e80d143a4ee414c4b48a
|
1
sources/seafile-server_4.0.6_i386.tar.REMOVED.git-id
Normal file
1
sources/seafile-server_4.0.6_i386.tar.REMOVED.git-id
Normal file
|
@ -0,0 +1 @@
|
|||
49612e98e534d7ce61743da13282d9538925faea
|
Loading…
Reference in a new issue