diff --git a/conf/upgrade_5.0.3.exp b/conf/upgrade_5.0.3.exp new file mode 100644 index 0000000..370cb72 --- /dev/null +++ b/conf/upgrade_5.0.3.exp @@ -0,0 +1,11 @@ +#!/usr/bin/expect +set timeout 5 + +set mysql_password [lindex $argv 0] + +spawn /var/www/seafile/seafile-server-5.0.3/upgrade/upgrade_4.4_5.0.sh + +expect "to contiune" +send "\r"; + +interact \ No newline at end of file diff --git a/scripts/install b/scripts/install index 7834551..a7acbaa 100644 --- a/scripts/install +++ b/scripts/install @@ -12,7 +12,7 @@ is_public=$6 architecture=$7 final_path=/var/www/$app seafile_data=/home/yunohost.app/seafile-data -seafile_version=4.4.3 +seafile_version=5.0.3 # Retrieve admin email admin_email=$(sudo yunohost user info $admin | grep mail: | sed "s/mail: //g") @@ -78,29 +78,29 @@ sudo chmod +x $final_path/seafile-server-$seafile_version/setup-seafile-mysql.sh sudo ../conf/install.exp $server_name $domain $seafile_data $fileserver_port $db_pwd # Update seafile config -sudo sed -i "s@http://@https://@g" $final_path/ccnet/ccnet.conf -sudo sed -i "s@:8000@$path@g" $final_path/ccnet/ccnet.conf -echo 'FILE_SERVER_ROOT = "https://'$domain'/seafhttp"' | sudo tee -a $final_path/seahub_settings.py -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 -echo 'COMPRESS_URL = MEDIA_URL' | sudo tee -a $final_path/seahub_settings.py -echo "STATIC_URL = MEDIA_URL + 'assets/'" | sudo tee -a $final_path/seahub_settings.py +sudo sed -i "s@http://@https://@g" $final_path/conf/ccnet.conf +sudo sed -i "s@:8000@$path@g" $final_path/conf/ccnet.conf +echo 'FILE_SERVER_ROOT = "https://'$domain'/seafhttp"' | sudo tee -a $final_path/conf/seahub_settings.py +echo 'SITE_ROOT = "'$path'/"' | sudo tee -a $final_path/conf/seahub_settings.py +echo 'SERVE_STATIC = False' | sudo tee -a $final_path/conf/seahub_settings.py +echo 'MEDIA_URL = "'$path'/media/"' | sudo tee -a $final_path/conf/seahub_settings.py +echo 'COMPRESS_URL = MEDIA_URL' | sudo tee -a $final_path/conf/seahub_settings.py +echo "STATIC_URL = MEDIA_URL + 'assets/'" | sudo tee -a $final_path/conf/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 +echo 'EMAIL_USE_TLS = False' | sudo tee -a $final_path/conf/seahub_settings.py +echo 'EMAIL_HOST = "localhost"' | sudo tee -a $final_path/conf/seahub_settings.py +echo 'EMAIL_HOST_USER = "seafile@'$domain'"' | sudo tee -a $final_path/conf/seahub_settings.py +echo 'EMAIL_HOST_PASSWORD = ""' | sudo tee -a $final_path/conf/seahub_settings.py +echo 'EMAIL_PORT = "25"' | sudo tee -a $final_path/conf/seahub_settings.py +echo 'DEFAULT_FROM_EMAIL = "seafile@'$domain'"' | sudo tee -a $final_path/conf/seahub_settings.py +echo 'SERVER_EMAIL = "seafile@'$domain'"' | sudo tee -a $final_path/conf/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 -echo 'BASE = ou=users,dc=yunohost,dc=org' | sudo tee -a $final_path/ccnet/ccnet.conf -echo 'LOGIN_ATTR = mail' | sudo tee -a $final_path/ccnet/ccnet.conf +echo '[LDAP]' | sudo tee -a $final_path/conf/ccnet.conf +echo 'HOST = ldap://localhost:389' | sudo tee -a $final_path/conf/ccnet.conf +echo 'BASE = ou=users,dc=yunohost,dc=org' | sudo tee -a $final_path/conf/ccnet.conf +echo 'LOGIN_ATTR = mail' | sudo tee -a $final_path/conf/ccnet.conf # Add Seafile Server to startup sudo cp ../conf/seafile-server /etc/init.d diff --git a/sources/seafile-server_4.4.3_i386.tar.REMOVED.git-id b/sources/seafile-server_4.4.3_i386.tar.REMOVED.git-id deleted file mode 100644 index 084e045..0000000 --- a/sources/seafile-server_4.4.3_i386.tar.REMOVED.git-id +++ /dev/null @@ -1 +0,0 @@ -6a24a05a0990ca9f47644914c363630a4b416c77 \ No newline at end of file diff --git a/sources/seafile-server_4.4.3_rpi.tar.REMOVED.git-id b/sources/seafile-server_4.4.3_rpi.tar.REMOVED.git-id deleted file mode 100644 index 2c3bddd..0000000 --- a/sources/seafile-server_4.4.3_rpi.tar.REMOVED.git-id +++ /dev/null @@ -1 +0,0 @@ -38803ad3a16da3bbc3a20b4b9fae20ec7709ce22 \ No newline at end of file diff --git a/sources/seafile-server_4.4.3_x86-64.tar.REMOVED.git-id b/sources/seafile-server_4.4.3_x86-64.tar.REMOVED.git-id deleted file mode 100644 index f0bd264..0000000 --- a/sources/seafile-server_4.4.3_x86-64.tar.REMOVED.git-id +++ /dev/null @@ -1 +0,0 @@ -c2866ea4587005d380327ba095bf1a4ae790bceb \ No newline at end of file diff --git a/sources/seafile-server_5.0.3_i386.tar.gz.REMOVED.git-id b/sources/seafile-server_5.0.3_i386.tar.gz.REMOVED.git-id new file mode 100644 index 0000000..cc90b5b --- /dev/null +++ b/sources/seafile-server_5.0.3_i386.tar.gz.REMOVED.git-id @@ -0,0 +1 @@ +601f5fefe734566c4592b46ff22f4c9ab8bcea43 \ No newline at end of file diff --git a/sources/seafile-server_5.0.3_rpi.tar.gz.REMOVED.git-id b/sources/seafile-server_5.0.3_rpi.tar.gz.REMOVED.git-id new file mode 100644 index 0000000..cf853eb --- /dev/null +++ b/sources/seafile-server_5.0.3_rpi.tar.gz.REMOVED.git-id @@ -0,0 +1 @@ +dc83ddf23814ca7dc5e0093ce4f3ad82ec310cbc \ No newline at end of file diff --git a/sources/seafile-server_5.0.3_x86-64.tar.gz.REMOVED.git-id b/sources/seafile-server_5.0.3_x86-64.tar.gz.REMOVED.git-id new file mode 100644 index 0000000..a14e8e7 --- /dev/null +++ b/sources/seafile-server_5.0.3_x86-64.tar.gz.REMOVED.git-id @@ -0,0 +1 @@ +452bfdd255d6f1cc2e8c9ea5b26ea929090b2c51 \ No newline at end of file