From 7fe72841871063d3dd8f24ae88f42dc50bc9c5d3 Mon Sep 17 00:00:00 2001 From: mbugeia Date: Wed, 18 Mar 2015 18:07:50 +0100 Subject: [PATCH] Fix sso config Former-commit-id: ace2d5871263278568355dd2d85d8a98189ddf75 --- scripts/install | 4 +++- scripts/remove | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 22deb22..e5f09d9 100644 --- a/scripts/install +++ b/scripts/install @@ -130,7 +130,9 @@ sudo su - www-data -c "/var/www/seafile/seafile-server-4.0.6/seafile.sh start" sudo su - www-data -c "$final_path/first_launch.exp $admin_email $admin_password" # add sso config to unprotect domain.tld/seafhttp in /etc/ssowat/conf.json.persistent -sudo python ../conf/add_sso_config.py +sudo cp ../conf/add_sso_conf.py $final_path +sudo cp ../conf/remove_sso_conf.py $final_path +sudo python $final_path/add_sso_conf.py # unprotect media sudo yunohost app setting seafile unprotected_uris -v "/media" diff --git a/scripts/remove b/scripts/remove index baf02a7..ed1cd6f 100644 --- a/scripts/remove +++ b/scripts/remove @@ -4,6 +4,9 @@ root_pwd=$(sudo cat /etc/yunohost/mysql) sudo service seafile-server stop +# remove sso config to unprotect domain.tld/seafhttp in /etc/ssowat/conf.json.persistent +sudo python /var/www/seafile/remove_sso_conf.py + sudo rm -rf /var/www/seafile sudo rm -f /etc/nginx/conf.d/$domain.d/seafile.conf sudo rm -f /etc/init.d/seafile-server @@ -20,9 +23,6 @@ sudo yunohost firewall disallow $seafile_port sudo yunohost service remove seafile-server -# remove sso config to unprotect domain.tld/seafhttp in /etc/ssowat/conf.json.persistent -sudo python ../conf/remove_sso_config.py - # Restart services sudo service nginx reload sudo yunohost app ssowatconf \ No newline at end of file