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